	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au_login_fail                  ## -- Begin function au_login_fail
	.p2align	4, 0x90
_au_login_fail:                         ## @au_login_fail
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, %r15d
	movq	_A_GETCOND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	$4, %edx
	callq	_auditon
	testq	%rax, %rax
	jns	LBB0_3
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOSYS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	movl	-48(%rbp), %eax
	movq	_AUC_NOAUDIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.4:
	xorl	%eax, %eax
	callq	_au_open
	movl	%eax, %r12d
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	testl	%ebx, %ebx
	je	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_geteuid
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_getegid
	movq	_tid@GOTPCREL(%rip), %r10
	movl	$-1, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	$-1, %ecx
	movl	$-1, %r8d
	movl	%r15d, %r9d
	pushq	%r10
	pushq	$-1
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	testl	%ebx, %ebx
	jne	LBB0_7
LBB0_8:
	movq	_pwd@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_geteuid
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_getegid
	movq	_tid@GOTPCREL(%rip), %r10
	movl	%ebx, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r15d, %r9d
	pushq	%r10
	pushq	%r15
LBB0_9:
	callq	_au_to_subject32
	addq	$16, %rsp
	movq	%rax, %rsi
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	xorl	%esi, %esi
LBB0_11:
	movl	%r12d, %edi
	callq	_au_write
	movq	%r14, %rdi
	callq	_au_to_text
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_13:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_au_write
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$1, %edi
	callq	_au_to_return32
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_15:
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_au_write
	movq	_AUE_login@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_au_close
	cmpl	$-1, %eax
	jne	LBB0_17
## %bb.16:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_GETCOND,4,2                  ## @A_GETCOND
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOSYS,8,3                     ## @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not determine audit condition"

	.comm	_AUC_NOAUDIT,4,2                ## @AUC_NOAUDIT
L_.str.1:                               ## @.str.1
	.asciz	"audit error: au_open() failed"

	.comm	_tid,4,2                        ## @tid
L_.str.2:                               ## @.str.2
	.asciz	"audit error: au_to_subject32() failed"

	.comm	_pwd,8,3                        ## @pwd
L_.str.3:                               ## @.str.3
	.asciz	"audit error: au_to_text() failed"

L_.str.4:                               ## @.str.4
	.asciz	"audit error: au_to_return32() failed"

	.comm	_AUE_login,4,2                  ## @AUE_login
L_.str.5:                               ## @.str.5
	.asciz	"audit error: au_close() was not committed"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au_login_fail                  ; -- Begin function au_login_fail
	.p2align	2
_au_login_fail:                         ; @au_login_fail
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	bl	_getpid
	mov	x21, x0
Lloh0:
	adrp	x8, _A_GETCOND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _A_GETCOND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	w2, #4
	bl	_auditon
	tbz	x0, #63, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _ENOSYS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENOSYS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_17
; %bb.2:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _AUC_NOAUDIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AUC_NOAUDIT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_17
; %bb.4:
	bl	_au_open
	mov	x19, x0
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:
	cbz	w22, LBB0_8
LBB0_6:
	bl	_geteuid
	mov	x22, x0
	bl	_getegid
	mov	x2, x0
Lloh14:
	adrp	x7, _tid@GOTPAGE
Lloh15:
	ldr	x7, [x7, _tid@GOTPAGEOFF]
	mov	w0, #-1
	mov	x1, x22
	mov	w3, #-1
	mov	w4, #-1
	mov	x5, x21
	mov	w6, #-1
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
	cbnz	w22, LBB0_6
LBB0_8:
Lloh18:
	adrp	x8, _pwd@GOTPAGE
Lloh19:
	ldr	x8, [x8, _pwd@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldp	w22, w23, [x8]
	bl	_geteuid
	mov	x24, x0
	bl	_getegid
	mov	x2, x0
Lloh21:
	adrp	x7, _tid@GOTPAGE
Lloh22:
	ldr	x7, [x7, _tid@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x24
	mov	x3, x22
	mov	x4, x23
	mov	x5, x21
	mov	x6, x21
LBB0_9:
	bl	_au_to_subject32
	mov	x1, x0
	cbnz	x0, LBB0_11
; %bb.10:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
	mov	x1, #0
LBB0_11:
	mov	x0, x19
	bl	_au_write
	mov	x0, x20
	bl	_au_to_text
	mov	x20, x0
	cbnz	x0, LBB0_13
; %bb.12:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_au_write
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	x1, [x8]
	mov	w0, #1
	bl	_au_to_return32
	mov	x20, x0
	cbnz	x0, LBB0_15
; %bb.14:
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	bl	_au_write
Lloh32:
	adrp	x8, _AUE_login@GOTPAGE
Lloh33:
	ldr	x8, [x8, _AUE_login@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_au_close
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.16:
Lloh35:
	adrp	x1, l_.str.5@PAGE
Lloh36:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_17:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_A_GETCOND,4,2                  ; @A_GETCOND
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOSYS,8,3                     ; @ENOSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not determine audit condition"

	.comm	_AUC_NOAUDIT,4,2                ; @AUC_NOAUDIT
l_.str.1:                               ; @.str.1
	.asciz	"audit error: au_open() failed"

	.comm	_tid,4,2                        ; @tid
l_.str.2:                               ; @.str.2
	.asciz	"audit error: au_to_subject32() failed"

	.comm	_pwd,8,3                        ; @pwd
l_.str.3:                               ; @.str.3
	.asciz	"audit error: au_to_text() failed"

l_.str.4:                               ; @.str.4
	.asciz	"audit error: au_to_return32() failed"

	.comm	_AUE_login,4,2                  ; @AUE_login
l_.str.5:                               ; @.str.5
	.asciz	"audit error: au_close() was not committed"

.subsections_via_symbols
