	.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
	movq	%rsi, %r15
	movl	%edi, %ebx
	leaq	-48(%rbp), %rdi
	callq	_ath_driver_req_init
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_ATH_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_2:
	leaq	L_.str.1(%rip), %r12
	movq	_optarg@GOTPCREL(%rip), %r13
	jmp	LBB0_3
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_getopt
	cmpl	$105, %eax
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$108, %eax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_usage
	jmp	LBB0_3
LBB0_7:
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ath_driver_req_open
	testq	%rax, %rax
	jns	LBB0_8
## %bb.15:
	movl	$127, %edi
	callq	_exit
LBB0_14:
	xorl	%eax, %eax
	callq	_list_labels
	xorl	%edi, %edi
	callq	_exit
LBB0_8:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	cmpl	%ebx, %r12d
	jne	LBB0_9
## %bb.16:
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ani_read_state
	xorl	%edi, %edi
	callq	_exit
LBB0_9:
	subl	%r12d, %ebx
	cmpl	$1, %ebx
	jg	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	callq	_usage
LBB0_11:
	movq	(%r15,%r12,8), %rdx
	movq	8(%r15,%r12,8), %rcx
	leaq	-48(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ani_write_state
	testq	%rax, %rax
	jne	LBB0_17
## %bb.12:
	xorl	%edi, %edi
	callq	_exit
LBB0_17:
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ATH"

	.comm	_ATH_DEFAULT,8,3                ## @ATH_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"i:l"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_optind,8,3                     ## @optind
.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, #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	x21, x1
	mov	x20, x0
	add	x0, sp, #8
	bl	_ath_driver_req_init
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
Lloh2:
	adrp	x8, _ATH_DEFAULT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ATH_DEFAULT@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x19, x8, x0, eq
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh7:
	adrp	x23, _optarg@GOTPAGE
Lloh8:
	ldr	x23, [x23, _optarg@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x19, [x23]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_getopt
	cmp	w0, #105
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #108
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
	b	LBB0_2
LBB0_6:
	add	x0, sp, #8
	mov	x1, x19
	bl	_ath_driver_req_open
	tbz	x0, #63, LBB0_9
; %bb.7:
	mov	w0, #127
	bl	_exit
LBB0_8:
	bl	_list_labels
	mov	w0, #0
	bl	_exit
LBB0_9:
Lloh9:
	adrp	x8, _optind@GOTPAGE
Lloh10:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	w8, w20
	b.ne	LBB0_11
; %bb.10:
	add	x0, sp, #8
	mov	x1, x19
	bl	_ani_read_state
	mov	w0, #0
	bl	_exit
LBB0_11:
	add	x21, x21, x8, lsl #3
	sub	w8, w20, w8
	cmp	w8, #1
	b.gt	LBB0_13
; %bb.12:
	bl	_usage
LBB0_13:
	ldp	x2, x3, [x21]
	add	x0, sp, #8
	mov	x1, x19
	bl	_ani_write_state
	cbz	x0, LBB0_15
; %bb.14:
	mov	w0, #1
LBB0_15:
	bl	_exit
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ATH"

	.comm	_ATH_DEFAULT,8,3                ; @ATH_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"i:l"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_optind,8,3                     ; @optind
.subsections_via_symbols
