	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_token
_write_token:                           ## @write_token
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_AUDIT_RECORD_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movl	%ebx, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, -56(%rbp)
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_au_close_token
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	_EX_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_2:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_open_file
	movl	%eax, %ebx
	movq	-56(%rbp), %rdx
	movl	%eax, %edi
	movq	%r13, %rsi
	movq	%r15, %rcx
	callq	_write_file
	movl	%ebx, %edi
	callq	_close
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_AUDIT_RECORD_SIZE,4,2      ## @MAX_AUDIT_RECORD_SIZE
	.comm	_EX_UNAVAILABLE,4,2             ## @EX_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"au_close_token"

	.no_dead_strip	_write_token
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_token
_write_token:                           ; @write_token
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x8, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-40]
Lloh3:
	adrp	x9, _MAX_AUDIT_RECORD_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_AUDIT_RECORD_SIZE@GOTPAGEOFF]
Lloh5:
	ldrsw	x13, [x9]
	and	x9, x13, #0xffffffff
	lsl	x12, x9, #2
	mov	x9, x12
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x12, #15
	and	x10, x10, #0x7fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	stur	x13, [x29, #-48]
	sub	x2, x29, #48
	mov	x0, x8
	mov	x1, x21
	bl	_au_close_token
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EX_UNAVAILABLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EX_UNAVAILABLE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_2:
	mov	x0, x20
	mov	x1, x19
	bl	_open_file
	mov	x20, x0
	ldur	x2, [x29, #-48]
	mov	x1, x21
	mov	x3, x19
	bl	_write_file
	mov	x0, x20
	bl	_close
	ldur	x8, [x29, #-40]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_AUDIT_RECORD_SIZE,4,2      ; @MAX_AUDIT_RECORD_SIZE
	.comm	_EX_UNAVAILABLE,4,2             ; @EX_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"au_close_token"

	.no_dead_strip	_write_token
.subsections_via_symbols
