	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	cmpl	$2, %edi
	jl	LBB0_1
## %bb.2:
	movq	8(%rsi), %rbx
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rbx
LBB0_3:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_err
LBB0_5:
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edi
	callq	_fstat
	testq	%rax, %rax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_7:
	movl	-48(%rbp), %r15d
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAP_PRIVATE@GOTPCREL(%rip), %rax
	movq	_MAP_NOCORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%r15d, %esi
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %r12
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_9:
	movl	%r15d, %ebx
	sarl	$2, %ebx
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	_state@GOTPCREL(%rip), %rax
	movl	$5210, (%rax)                   ## imm = 0x145A
	cmpl	$4, %r15d
	jl	LBB0_20
## %bb.10:
	cmpl	$2, %ebx
	movl	$1, %r13d
	cmovgel	%ebx, %r13d
	leaq	L_.str.5(%rip), %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_oprw
LBB0_19:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rax
	incq	%rbx
	addq	$4, %r12
	cmpq	%rbx, %r13
	je	LBB0_20
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$1, %r14d
	leaq	L_.str.7(%rip), %rdx
	leaq	L_.str.6(%rip), %rax
	cmoveq	%rax, %rdx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%r14d, %eax
	callq	_printf
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	(%r12), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$130, %eax
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	$131, %eax
	jne	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rdi
	callq	_opdevice
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_opmark
	jmp	LBB0_19
LBB0_20:
	movl	$10, %edi
	callq	_putchar
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/tmp/ath_hal.log"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.1:                               ## @.str.1
	.asciz	"open: %s"

L_.str.2:                               ## @.str.2
	.asciz	"fstat"

	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ## @MAP_PRIVATE
	.comm	_MAP_NOCORE,4,2                 ## @MAP_NOCORE
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.3:                               ## @.str.3
	.asciz	"mmap"

L_.str.4:                               ## @.str.4
	.asciz	"%u records"

	.comm	_state,4,2                      ## @state
L_.str.5:                               ## @.str.5
	.asciz	"\t\t+%u time%s"

L_.str.6:                               ## @.str.6
	.space	1

L_.str.7:                               ## @.str.7
	.asciz	"s"

	.comm	_stdout,4,2                     ## @stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	x20, [x1, #8]
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
LBB0_3:
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_5
; %bb.4:
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
	add	x1, sp, #8
	mov	x0, x19
	bl	_fstat
	tbz	x0, #63, LBB0_7
; %bb.6:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
	ldr	w20, [sp, #8]
Lloh9:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh11:
	adrp	x9, _MAP_PRIVATE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MAP_PRIVATE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	ldr	w8, [x9]
Lloh15:
	adrp	x9, _MAP_NOCORE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAP_NOCORE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	w0, #0
	mov	x1, x20
	mov	x4, x19
	mov	w5, #0
	bl	_mmap
	mov	x19, x0
Lloh18:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_9
; %bb.8:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_9:
	asr	w21, w20, #2
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x21
	bl	_printf
Lloh25:
	adrp	x8, _state@GOTPAGE
Lloh26:
	ldr	x8, [x8, _state@GOTPAGEOFF]
	mov	w9, #5210
Lloh27:
	str	w9, [x8]
	cmp	w20, #4
	b.lt	LBB0_20
; %bb.10:
	mov	x20, #0
	mov	x8, #0
	mov	w1, #0
	cmp	w21, #1
	csinc	w22, w21, wzr, gt
Lloh28:
	adrp	x23, _stdout@GOTPAGE
Lloh29:
	ldr	x23, [x23, _stdout@GOTPAGEOFF]
Lloh30:
	adrp	x24, l_.str.7@PAGE
Lloh31:
	add	x24, x24, l_.str.7@PAGEOFF
Lloh32:
	adrp	x25, l_.str.6@PAGE
Lloh33:
	add	x25, x25, l_.str.6@PAGEOFF
Lloh34:
	adrp	x21, l_.str.5@PAGE
Lloh35:
	add	x21, x21, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	mov	x2, x19
	bl	_oprw
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	mov	x8, x19
	mov	w1, #0
	add	x20, x20, #1
	add	x19, x19, #4
	cmp	x22, x20
	b.eq	LBB0_20
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	cbz	w1, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w1, #1
	csel	x8, x25, x24, eq
	str	x8, [sp]
	mov	x0, x21
	bl	_printf
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [x19]
	sub	w9, w8, #128
	cmp	w9, #2
	b.lo	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w8, #130
	b.eq	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w8, #131
	b.ne	LBB0_12
; %bb.18:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x19
	bl	_opdevice
	b	LBB0_12
LBB0_19:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	mov	x2, x19
	bl	_opmark
	b	LBB0_12
LBB0_20:
	mov	w0, #10
	bl	_putchar
	mov	w0, #0
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/tmp/ath_hal.log"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.1:                               ; @.str.1
	.asciz	"open: %s"

l_.str.2:                               ; @.str.2
	.asciz	"fstat"

	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_MAP_PRIVATE,4,2                ; @MAP_PRIVATE
	.comm	_MAP_NOCORE,4,2                 ; @MAP_NOCORE
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.3:                               ; @.str.3
	.asciz	"mmap"

l_.str.4:                               ; @.str.4
	.asciz	"%u records"

	.comm	_state,4,2                      ; @state
l_.str.5:                               ; @.str.5
	.asciz	"\t\t+%u time%s"

l_.str.6:                               ; @.str.6
	.space	1

l_.str.7:                               ; @.str.7
	.asciz	"s"

	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
