	.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
	subq	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PWR_TABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PWR_TABLE_SIZE_2413@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MAX
	movq	%rsp, -272(%rbp)                ## 8-byte Spill
	movl	%eax, -220(%rbp)                ## 4-byte Spill
	movl	%eax, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, -216(%rbp)                ## 4-byte Spill
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	%r14, -264(%rbp)                ## 8-byte Spill
	leaq	L_.str.1(%rip), %rdi
	callq	_getenv
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_ATH_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_4:
	xorl	%r12d, %r12d
	leaq	L_.str.2(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_getopt
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$118, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$105, %eax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rdi
	callq	_usage
	jmp	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	jmp	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_5
LBB0_11:
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_strncpy
	movq	_HAL_DIAG_REVS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -232(%rbp)
	leaq	-212(%rbp), %rax
	movq	%rax, -240(%rbp)
	movl	$4, -248(%rbp)
	movq	_SIOCGATHDIAG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-256(%rbp), %rdx
	movl	-216(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:
	movq	-256(%rbp), %rsi
	movl	$1, %edi
	callq	_err
LBB0_13:
	testl	%r12d, %r12d
	movq	-264(%rbp), %r15                ## 8-byte Reload
	je	LBB0_15
## %bb.14:
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-212(%rbp), %rsi
	callq	_printRevs
LBB0_15:
	movq	_HAL_DIAG_TXRATES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -232(%rbp)
	leaq	-208(%rbp), %rax
	movq	%rax, -240(%rbp)
	movl	$148, -248(%rbp)
	movl	(%r14), %esi
	leaq	-256(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_17
## %bb.16:
	movq	-256(%rbp), %rsi
	movl	$1, %edi
	callq	_err
LBB0_17:
	movq	_HAL_DIAG_PCDAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -232(%rbp)
	movq	%r15, -240(%rbp)
	movl	-220(%rbp), %eax                ## 4-byte Reload
	shll	$2, %eax
	movl	%eax, -248(%rbp)
	movl	(%r14), %esi
	leaq	-256(%rbp), %rdx
	movl	%ebx, %edi
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_19
## %bb.18:
	movq	-256(%rbp), %rsi
	movl	$1, %edi
	callq	_err
LBB0_19:
	leaq	-212(%rbp), %rdi
	callq	_IS_2413
	testq	%rax, %rax
	movq	_PWR_TABLE_SIZE_2413@GOTPCREL(%rip), %rax
	jne	LBB0_23
## %bb.20:
	leaq	-212(%rbp), %rdi
	callq	_IS_5413
	testq	%rax, %rax
	jne	LBB0_21
## %bb.22:
	movq	_PWR_TABLE_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_21:
	movq	_PWR_TABLE_SIZE_2413@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %ebx
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	_stdout@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_printPcdacTable
	leaq	L_str.5(%rip), %rdi
	callq	_puts
	movl	(%r14), %edi
	leaq	-208(%rbp), %rsi
	movl	$37, %edx
	callq	_printPowerPerRate
	movq	-272(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.24:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PWR_TABLE_SIZE,4,2             ## @PWR_TABLE_SIZE
	.comm	_PWR_TABLE_SIZE_2413,4,2        ## @PWR_TABLE_SIZE_2413
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"socket"

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

	.comm	_ATH_DEFAULT,8,3                ## @ATH_DEFAULT
L_.str.2:                               ## @.str.2
	.asciz	"i:v"

	.comm	_optarg,8,3                     ## @optarg
	.comm	_HAL_DIAG_REVS,4,2              ## @HAL_DIAG_REVS
	.comm	_SIOCGATHDIAG,4,2               ## @SIOCGATHDIAG
	.comm	_stdout,4,2                     ## @stdout
	.comm	_HAL_DIAG_TXRATES,4,2           ## @HAL_DIAG_TXRATES
	.comm	_HAL_DIAG_PCDAC,4,2             ## @HAL_DIAG_PCDAC
L_str:                                  ## @str
	.asciz	"PCDAC table:"

L_str.5:                                ## @str.5
	.asciz	"Power per rate table:"

.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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #208
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _PWR_TABLE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PWR_TABLE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _PWR_TABLE_SIZE_2413@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PWR_TABLE_SIZE_2413@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_MAX
	mov	x20, x0
	mov	x26, sp
	mov	w8, w0
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x19, x9, x8
	mov	sp, x19
Lloh11:
	adrp	x8, _AF_INET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_getenv
	mov	w28, #0
Lloh21:
	adrp	x8, _ATH_DEFAULT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ATH_DEFAULT@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x24, x8, x0, eq
Lloh24:
	adrp	x25, l_.str.2@PAGE
Lloh25:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh26:
	adrp	x27, _optarg@GOTPAGE
Lloh27:
	ldr	x27, [x27, _optarg@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	bl	_getopt
	cmn	w0, #1
	b.eq	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #118
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #105
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22]
	bl	_usage
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w28, w28, #1
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x24, [x27]
	b	LBB0_3
LBB0_9:
	mov	x1, x24
	mov	w2, #8
	bl	_strncpy
Lloh28:
	adrp	x8, _HAL_DIAG_REVS@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HAL_DIAG_REVS@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	stur	w8, [x29, #-256]
	sub	x8, x29, #284
	sub	x9, x29, #8
	stur	x8, [x9, #-256]
	mov	w8, #4
	sub	x9, x29, #16
	stur	w8, [x9, #-256]
Lloh31:
	adrp	x23, _SIOCGATHDIAG@GOTPAGE
Lloh32:
	ldr	x23, [x23, _SIOCGATHDIAG@GOTPAGEOFF]
	ldr	w1, [x23]
	sub	x2, x29, #280
	mov	x0, x21
	bl	_ioctl
	tbz	x0, #63, LBB0_11
; %bb.10:
	sub	x8, x29, #24
	ldur	x1, [x8, #-256]
	mov	w0, #1
	bl	_err
LBB0_11:
Lloh33:
	adrp	x22, _stdout@GOTPAGE
Lloh34:
	ldr	x22, [x22, _stdout@GOTPAGEOFF]
	cbz	w28, LBB0_13
; %bb.12:
	ldr	w0, [x22]
	sub	x1, x29, #284
	bl	_printRevs
LBB0_13:
Lloh35:
	adrp	x8, _HAL_DIAG_TXRATES@GOTPAGE
Lloh36:
	ldr	x8, [x8, _HAL_DIAG_TXRATES@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	stur	w8, [x29, #-256]
	sub	x8, x29, #244
	sub	x9, x29, #8
	stur	x8, [x9, #-256]
	mov	w8, #148
	sub	x9, x29, #16
	stur	w8, [x9, #-256]
	ldr	w1, [x23]
	sub	x2, x29, #280
	mov	x0, x21
	bl	_ioctl
	tbz	x0, #63, LBB0_15
; %bb.14:
	sub	x8, x29, #24
	ldur	x1, [x8, #-256]
	mov	w0, #1
	bl	_err
LBB0_15:
Lloh38:
	adrp	x8, _HAL_DIAG_PCDAC@GOTPAGE
Lloh39:
	ldr	x8, [x8, _HAL_DIAG_PCDAC@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	stur	w8, [x29, #-256]
	sub	x8, x29, #8
	stur	x19, [x8, #-256]
	lsl	w8, w20, #2
	sub	x9, x29, #16
	stur	w8, [x9, #-256]
	ldr	w1, [x23]
	sub	x2, x29, #280
	mov	x0, x21
	bl	_ioctl
	tbz	x0, #63, LBB0_17
; %bb.16:
	sub	x8, x29, #24
	ldur	x1, [x8, #-256]
	mov	w0, #1
	bl	_err
LBB0_17:
	sub	x0, x29, #284
	bl	_IS_2413
Lloh41:
	adrp	x20, _PWR_TABLE_SIZE_2413@GOTPAGE
Lloh42:
	ldr	x20, [x20, _PWR_TABLE_SIZE_2413@GOTPAGEOFF]
	cbnz	x0, LBB0_19
; %bb.18:
	sub	x0, x29, #284
	bl	_IS_5413
	cmp	x0, #0
Lloh43:
	adrp	x8, _PWR_TABLE_SIZE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PWR_TABLE_SIZE@GOTPAGEOFF]
	csel	x20, x8, x20, eq
LBB0_19:
	ldr	w20, [x20]
Lloh45:
	adrp	x0, l_str@PAGE
Lloh46:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	w0, [x22]
	mov	x1, x19
	mov	x2, x20
	bl	_printPcdacTable
Lloh47:
	adrp	x0, l_str.5@PAGE
Lloh48:
	add	x0, x0, l_str.5@PAGEOFF
	bl	_puts
	ldr	w0, [x22]
	sub	x1, x29, #244
	mov	w2, #37
	bl	_printPowerPerRate
	mov	sp, x26
	ldur	x8, [x29, #-96]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	w0, #0
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_PWR_TABLE_SIZE,4,2             ; @PWR_TABLE_SIZE
	.comm	_PWR_TABLE_SIZE_2413,4,2        ; @PWR_TABLE_SIZE_2413
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"socket"

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

	.comm	_ATH_DEFAULT,8,3                ; @ATH_DEFAULT
l_.str.2:                               ; @.str.2
	.asciz	"i:v"

	.comm	_optarg,8,3                     ; @optarg
	.comm	_HAL_DIAG_REVS,4,2              ; @HAL_DIAG_REVS
	.comm	_SIOCGATHDIAG,4,2               ; @SIOCGATHDIAG
	.comm	_stdout,4,2                     ; @stdout
	.comm	_HAL_DIAG_TXRATES,4,2           ; @HAL_DIAG_TXRATES
	.comm	_HAL_DIAG_PCDAC,4,2             ; @HAL_DIAG_PCDAC
l_str:                                  ; @str
	.asciz	"PCDAC table:"

l_str.5:                                ; @str.5
	.asciz	"Power per rate table:"

.subsections_via_symbols
