	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setutxdb                       ## -- Begin function setutxdb
	.p2align	4, 0x90
_setutxdb:                              ## @setutxdb
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	leal	-128(%r14), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.3:
	cltq
	leaq	l_switch.table.setutxdb(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax), %rbx
LBB0_4:
	movq	_uf@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_fclose
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_fopen
	movq	%rax, (%r15)
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	cmpl	$128, %r14d
	je	LBB0_12
## %bb.8:
	movq	%rax, %rdi
	callq	_fileno
	leaq	-32(%rbp), %rsi
	movl	%eax, %edi
	callq	__fstat
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.9:
	testb	$3, -32(%rbp)
	je	LBB0_11
## %bb.10:
	movq	(%r15), %rdi
	callq	_fclose
	movq	$0, (%r15)
	movq	_EFTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %ebx
	jmp	LBB0_13
LBB0_11:
	movq	(%r15), %rbx
	movq	__IOFBF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$4, %esi
	callq	_rounddown
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_setvbuf
LBB0_12:
	movq	_udb@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_UTX_ACTIVE,8,3           ## @_PATH_UTX_ACTIVE
	.comm	__PATH_UTX_LASTLOGIN,8,3        ## @_PATH_UTX_LASTLOGIN
	.comm	__PATH_UTX_LOG,8,3              ## @_PATH_UTX_LOG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_uf,8,3                         ## @uf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"re"

	.comm	_EFTYPE,4,2                     ## @EFTYPE
	.comm	__IOFBF,4,2                     ## @_IOFBF
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_udb,4,2                        ## @udb
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.setutxdb
l_switch.table.setutxdb:
	.quad	__PATH_UTX_LOG
	.quad	__PATH_UTX_LASTLOGIN
	.quad	__PATH_UTX_ACTIVE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setutxdb                       ; -- Begin function setutxdb
	.p2align	2
_setutxdb:                              ; @setutxdb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	w8, w0, #128
	cmp	w8, #3
	b.hs	LBB0_8
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, l_switch.table.setutxdb@PAGE
Lloh1:
	add	x9, x9, l_switch.table.setutxdb@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	x8, [x8]
	cmp	x1, #0
	csel	x20, x8, x1, eq
Lloh2:
	adrp	x21, _uf@GOTPAGE
Lloh3:
	ldr	x21, [x21, _uf@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_fclose
LBB0_3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_fopen
	str	x0, [x21]
	cbz	x0, LBB0_10
; %bb.4:
	cmp	w19, #128
	b.eq	LBB0_12
; %bb.5:
	bl	_fileno
	add	x1, sp, #8
	bl	__fstat
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.6:
	ldrb	w8, [sp, #8]
	tst	w8, #0x3
	b.eq	LBB0_11
; %bb.7:
	ldr	x0, [x21]
	bl	_fclose
Lloh6:
	adrp	x8, _EFTYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EFTYPE@GOTPAGEOFF]
	str	xzr, [x21]
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _errno@GOTPAGE
Lloh11:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
LBB0_10:
	mov	w0, #-1
	b	LBB0_13
LBB0_11:
	ldr	x20, [x21]
Lloh13:
	adrp	x8, __IOFBF@GOTPAGE
Lloh14:
	ldr	x8, [x8, __IOFBF@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
Lloh16:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #4
	bl	_rounddown
	mov	x3, x0
	mov	x0, x20
	mov	x1, #0
	mov	x2, x21
	bl	_setvbuf
LBB0_12:
	mov	w0, #0
Lloh19:
	adrp	x8, _udb@GOTPAGE
Lloh20:
	ldr	x8, [x8, _udb@GOTPAGEOFF]
Lloh21:
	str	w19, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_UTX_ACTIVE,8,3           ; @_PATH_UTX_ACTIVE
	.comm	__PATH_UTX_LASTLOGIN,8,3        ; @_PATH_UTX_LASTLOGIN
	.comm	__PATH_UTX_LOG,8,3              ; @_PATH_UTX_LOG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_uf,8,3                         ; @uf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"re"

	.comm	_EFTYPE,4,2                     ; @EFTYPE
	.comm	__IOFBF,4,2                     ; @_IOFBF
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_udb,4,2                        ; @udb
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.setutxdb
l_switch.table.setutxdb:
	.quad	__PATH_UTX_LOG
	.quad	__PATH_UTX_LASTLOGIN
	.quad	__PATH_UTX_ACTIVE

.subsections_via_symbols
