	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au_login_success               ## -- Begin function au_login_success
	.p2align	4, 0x90
_au_login_success:                      ## @au_login_success
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pwd@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	4(%rax), %r14d
	movl	8(%rax), %r15d
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, %r12d
	movq	_A_GETCOND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%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_16
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	movl	-44(%rbp), %eax
	movq	_AUC_NOAUDIT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_16
## %bb.4:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	callq	_au_user_mask
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_6:
	movl	%r15d, -52(%rbp)
	movl	%r12d, -56(%rbp)
	movq	_tid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	-48(%rbp), %eax
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_setaudit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	xorl	%eax, %eax
	callq	_au_open
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_10:
	xorl	%eax, %eax
	callq	_geteuid
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_getegid
	movl	%r15d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	pushq	_tid@GOTPCREL(%rip)
	pushq	%r12
	callq	_au_to_subject32
	addq	$16, %rsp
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_12:
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_au_write
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_au_to_return32
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_14:
	movl	%r13d, %edi
	movq	%rbx, %rsi
	callq	_au_write
	movq	_AUE_login@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	$1, %esi
	callq	_au_close
	cmpl	$-1, %eax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.6(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pwd,8,3                        ## @pwd
	.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	"could not calculate audit mask"

	.comm	_tid,4,2                        ## @tid
L_.str.2:                               ## @.str.2
	.asciz	"setaudit failed"

L_.str.3:                               ## @.str.3
	.asciz	"audit error: au_open() failed"

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

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

	.comm	_AUE_login,4,2                  ## @AUE_login
L_.str.6:                               ## @.str.6
	.asciz	"audit record was not committed."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_au_login_success               ; -- Begin function au_login_success
	.p2align	2
_au_login_success:                      ; @au_login_success
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x22, _pwd@GOTPAGE
Lloh1:
	ldr	x22, [x22, _pwd@GOTPAGEOFF]
	ldr	x8, [x22]
	ldp	w19, w20, [x8, #4]
	bl	_getpid
	mov	x21, x0
Lloh2:
	adrp	x8, _A_GETCOND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _A_GETCOND@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, sp, #4
	mov	w2, #4
	bl	_auditon
	tbz	x0, #63, LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _ENOSYS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ENOSYS@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_16
; %bb.2:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	ldr	w8, [sp, #4]
Lloh13:
	adrp	x9, _AUC_NOAUDIT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AUC_NOAUDIT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_16
; %bb.4:
	ldr	x8, [x22]
	ldr	w0, [x8]
	add	x1, sp, #28
	bl	_au_user_mask
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_6:
	stp	w21, w20, [sp, #16]
Lloh18:
	adrp	x8, _tid@GOTPAGE
Lloh19:
	ldr	x8, [x8, _tid@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [sp, #28]
	stp	w9, w8, [sp, #8]
	add	x0, sp, #8
	bl	_setaudit
	cbz	x0, LBB0_8
; %bb.7:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	bl	_au_open
	mov	x22, x0
	cmn	w0, #1
	b.ne	LBB0_10
; %bb.9:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_10:
	bl	_geteuid
	mov	x23, x0
	bl	_getegid
	mov	x2, x0
Lloh25:
	adrp	x7, _tid@GOTPAGE
Lloh26:
	ldr	x7, [x7, _tid@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x23
	mov	x3, x20
	mov	x4, x19
	mov	x5, x21
	mov	x6, x21
	bl	_au_to_subject32
	mov	x19, x0
	cbnz	x0, LBB0_12
; %bb.11:
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_12:
	mov	x0, x22
	mov	x1, x19
	bl	_au_write
	mov	w0, #0
	mov	w1, #0
	bl	_au_to_return32
	mov	x19, x0
	cbnz	x0, LBB0_14
; %bb.13:
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_14:
	mov	x0, x22
	mov	x1, x19
	bl	_au_write
Lloh31:
	adrp	x8, _AUE_login@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AUE_login@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #1
	bl	_au_close
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.15:
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_pwd,8,3                        ; @pwd
	.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	"could not calculate audit mask"

	.comm	_tid,4,2                        ; @tid
l_.str.2:                               ; @.str.2
	.asciz	"setaudit failed"

l_.str.3:                               ; @.str.3
	.asciz	"audit error: au_open() failed"

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

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

	.comm	_AUE_login,4,2                  ; @AUE_login
l_.str.6:                               ; @.str.6
	.asciz	"audit record was not committed."

.subsections_via_symbols
