	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utmp_login                     ## -- Begin function utmp_login
	.p2align	4, 0x90
_utmp_login:                            ## @utmp_login
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rcx
	movq	%rsi, %rdx
	movq	%rdi, %rsi
	leaq	-16(%rbp), %rdi
	callq	_prepare_utmp
	movq	__PATH_WTMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_APPEND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%edx, %edx
	callq	_open
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	-16(%rbp), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_write
	movl	%ebx, %edi
	callq	_close
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PATH_WTMP,4,2                 ## @_PATH_WTMP
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_APPEND,4,2                   ## @O_APPEND
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	__PATH_UTMP,4,2                 ## @_PATH_UTMP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_utmp_login                     ; -- Begin function utmp_login
	.p2align	2
_utmp_login:                            ; @utmp_login
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x3, x2
	mov	x2, x1
	mov	x1, x0
	add	x0, sp, #8
	bl	_prepare_utmp
Lloh0:
	adrp	x8, __PATH_WTMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PATH_WTMP@GOTPAGEOFF]
Lloh2:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _O_APPEND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _O_APPEND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #0
	bl	_open
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	mov	w2, #4
	bl	_write
	mov	x0, x19
	bl	_close
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__PATH_WTMP,4,2                 ; @_PATH_WTMP
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_APPEND,4,2                   ; @O_APPEND
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	__PATH_UTMP,4,2                 ; @_PATH_UTMP
.subsections_via_symbols
