	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_records
_get_records:                           ## @get_records
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, -1096(%rbp)               ## 8-byte Spill
	movq	%rsp, -1104(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movw	$44, -1074(%rbp)
	leaq	L_.str(%rip), %rdx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_fmemopen
	movq	%rax, %r15
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ATF_REQUIRE
	leaq	-1088(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_au_read_rec
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_ATF_REQUIRE
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.1:
	xorl	%r14d, %r14d
	leaq	-1112(%rbp), %r12
	leaq	-1074(%rbp), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_AU_OFLAG_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_au_print_flags_tok
	addl	-1112(%rbp), %r14d
	cmpl	%r14d, %ebx
	jle	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r14d, %rax
	leaq	(,%rax,4), %rsi
	addq	-1088(%rbp), %rsi
	movl	%ebx, %edx
	subl	%eax, %edx
	movq	%r12, %rdi
	callq	_au_fetch_tok
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_get_records.cold.1
	jmp	LBB0_4
LBB0_5:
	movq	-1088(%rbp), %rdi
	callq	_free
	movq	%r15, %rdi
	callq	_fclose
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_ATF_REQUIRE_EQ
	leaq	L_.str.3(%rip), %rdi
	leaq	-1072(%rbp), %rsi
	movq	-1096(%rbp), %rdx               ## 8-byte Reload
	callq	_atf_utils_grep_string
	movq	-1104(%rbp), %rsp               ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function get_records.cold.1
_get_records.cold.1:                    ## @get_records.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	leaq	L_.str.2(%rip), %rdi
	callq	_atf_tc_fail
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

L_.str.1:                               ## @.str.1
	.asciz	"au_read_rec"

L_.str.2:                               ## @.str.2
	.asciz	"Incomplete Audit Record"

	.comm	_AU_OFLAG_NONE,4,2              ## @AU_OFLAG_NONE
L_.str.3:                               ## @.str.3
	.asciz	"%s"

	.no_dead_strip	_get_records
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_records
_get_records:                           ; @get_records
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1056
	mov	x21, x1
	mov	x19, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	mov	w8, #44
	strh	w8, [sp, #6]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	w1, #1024
	bl	_fmemopen
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
	add	x1, sp, #16
	mov	x0, x21
	bl	_au_read_rec
	mov	x21, x0
	cmn	w0, #1
	cset	w0, ne
	bl	_ATF_REQUIRE
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w23, #0
Lloh5:
	adrp	x24, _AU_OFLAG_NONE@GOTPAGE
Lloh6:
	ldr	x24, [x24, _AU_OFLAG_NONE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x24]
	add	x1, sp, #8
	add	x2, sp, #6
	mov	x0, x20
	bl	_au_print_flags_tok
	ldr	w8, [sp, #8]
	add	w23, w23, w8
	cmp	w21, w23
	b.le	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	add	x1, x8, w23, sxtw #2
	sub	w2, w21, w23
	add	x0, sp, #8
	bl	_au_fetch_tok
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_get_records.cold.1
	b	LBB0_2
LBB0_5:
	ldr	x0, [sp, #16]
	bl	_free
	mov	x0, x20
	bl	_fclose
	mov	x1, x0
	mov	w0, #0
	bl	_ATF_REQUIRE_EQ
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	add	x1, sp, #24
	mov	x2, x19
	bl	_atf_utils_grep_string
	mov	sp, x22
	ldur	x8, [x29, #-72]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	sp, sp, #1056
	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
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function get_records.cold.1
_get_records.cold.1:                    ; @get_records.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_atf_tc_fail
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

l_.str.1:                               ; @.str.1
	.asciz	"au_read_rec"

l_.str.2:                               ; @.str.2
	.asciz	"Incomplete Audit Record"

	.comm	_AU_OFLAG_NONE,4,2              ; @AU_OFLAG_NONE
l_.str.3:                               ; @.str.3
	.asciz	"%s"

	.no_dead_strip	_get_records
.subsections_via_symbols
