	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_radio_revision        ## -- Begin function ath5k_hw_radio_revision
	.p2align	4, 0x90
_ath5k_hw_radio_revision:               ## @ath5k_hw_radio_revision
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$129, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$128, %esi
	jne	LBB0_3
## %bb.4:
	movq	_AR5K_PHY_SHIFT_5GHZ@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_AR5K_PHY_SHIFT_2GHZ@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	xorl	%edi, %edi
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_ath5k_hw_reg_write
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$2500, %esi                     ## imm = 0x9C4
	callq	_usleep_range
	movl	$52, %edi
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	$7190, %esi                     ## imm = 0x1C16
	movl	%eax, %edx
	callq	_ath5k_hw_reg_write
	movl	$32, %edi
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	movl	%eax, %edx
	callq	_ath5k_hw_reg_write
	movl	$32, %edi
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	movl	%eax, %edx
	callq	_ath5k_hw_reg_write
	movl	$32, %edi
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	movl	%eax, %edx
	callq	_ath5k_hw_reg_write
	movl	$32, %edi
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	movl	%eax, %edx
	callq	_ath5k_hw_reg_write
	movl	$32, %edi
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	movl	%eax, %edx
	callq	_ath5k_hw_reg_write
	movl	$32, %edi
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	movl	%eax, %edx
	callq	_ath5k_hw_reg_write
	movl	$32, %edi
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	movl	%eax, %edx
	callq	_ath5k_hw_reg_write
	movl	$32, %edi
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	$65536, %esi                    ## imm = 0x10000
	movl	%eax, %edx
	callq	_ath5k_hw_reg_write
	movq	(%r14), %r15
	movq	_AR5K_AR5210@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$256, %edi                      ## imm = 0x100
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ath5k_hw_reg_read
	movl	%eax, %edi
	shrl	$28, %edi
	cmpq	%rbx, %r15
	jne	LBB0_7
## %bb.6:
	movl	$4, %esi
	callq	_ath5k_hw_bitswap
	movq	%rax, %rbx
	incq	%rbx
	jmp	LBB0_8
LBB0_3:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_7:
	shrl	$20, %eax
	andl	$240, %eax
	orl	%edi, %eax
	movl	%eax, %edi
	movl	$8, %esi
	callq	_ath5k_hw_bitswap
	movq	%rax, %rbx
LBB0_8:
	movq	_AR5K_PHY_SHIFT_5GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%edi, %edi
	callq	_AR5K_PHY
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_ath5k_hw_reg_write
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_PHY_SHIFT_2GHZ,4,2        ## @AR5K_PHY_SHIFT_2GHZ
	.comm	_AR5K_PHY_SHIFT_5GHZ,4,2        ## @AR5K_PHY_SHIFT_5GHZ
	.comm	_AR5K_AR5210,8,3                ## @AR5K_AR5210
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath5k_hw_radio_revision        ; -- Begin function ath5k_hw_radio_revision
	.p2align	2
_ath5k_hw_radio_revision:               ; @ath5k_hw_radio_revision
	.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
	mov	x19, x0
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _AR5K_PHY_SHIFT_5GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_PHY_SHIFT_5GHZ@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _AR5K_PHY_SHIFT_2GHZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR5K_PHY_SHIFT_2GHZ@GOTPAGEOFF]
LBB0_4:
Lloh4:
	adrp	x21, _AR5K_PHY_SHIFT_5GHZ@GOTPAGE
Lloh5:
	ldr	x21, [x21, _AR5K_PHY_SHIFT_5GHZ@GOTPAGEOFF]
	ldr	w20, [x8]
	mov	w0, #0
	bl	_AR5K_PHY
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_ath5k_hw_reg_write
	mov	w0, #2000
	mov	w1, #2500
	bl	_usleep_range
	mov	w0, #52
	bl	_AR5K_PHY
	mov	x2, x0
	mov	x0, x19
	mov	w1, #7190
	bl	_ath5k_hw_reg_write
	mov	w0, #32
	bl	_AR5K_PHY
	mov	x2, x0
	mov	x0, x19
	mov	w1, #65536
	bl	_ath5k_hw_reg_write
	mov	w0, #32
	bl	_AR5K_PHY
	mov	x2, x0
	mov	x0, x19
	mov	w1, #65536
	bl	_ath5k_hw_reg_write
	mov	w0, #32
	bl	_AR5K_PHY
	mov	x2, x0
	mov	x0, x19
	mov	w1, #65536
	bl	_ath5k_hw_reg_write
	mov	w0, #32
	bl	_AR5K_PHY
	mov	x2, x0
	mov	x0, x19
	mov	w1, #65536
	bl	_ath5k_hw_reg_write
	mov	w0, #32
	bl	_AR5K_PHY
	mov	x2, x0
	mov	x0, x19
	mov	w1, #65536
	bl	_ath5k_hw_reg_write
	mov	w0, #32
	bl	_AR5K_PHY
	mov	x2, x0
	mov	x0, x19
	mov	w1, #65536
	bl	_ath5k_hw_reg_write
	mov	w0, #32
	bl	_AR5K_PHY
	mov	x2, x0
	mov	x0, x19
	mov	w1, #65536
	bl	_ath5k_hw_reg_write
	mov	w0, #32
	bl	_AR5K_PHY
	mov	x2, x0
	mov	x0, x19
	mov	w1, #65536
	bl	_ath5k_hw_reg_write
	ldr	x20, [x19]
Lloh6:
	adrp	x8, _AR5K_AR5210@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR5K_AR5210@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	mov	w0, #256
	bl	_AR5K_PHY
	mov	x1, x0
	mov	x0, x19
	bl	_ath5k_hw_reg_read
	mov	x8, x0
	lsr	w0, w0, #28
	cmp	x20, x22
	b.ne	LBB0_7
; %bb.5:
	mov	w1, #4
	bl	_ath5k_hw_bitswap
	add	x20, x0, #1
	b	LBB0_8
LBB0_6:
	mov	x20, #0
	b	LBB0_9
LBB0_7:
	lsr	w8, w8, #20
	and	w8, w8, #0xf0
	orr	w0, w8, w0
	mov	w1, #8
	bl	_ath5k_hw_bitswap
	mov	x20, x0
LBB0_8:
	ldr	w21, [x21]
	mov	w0, #0
	bl	_AR5K_PHY
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ath5k_hw_reg_write
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_PHY_SHIFT_2GHZ,4,2        ; @AR5K_PHY_SHIFT_2GHZ
	.comm	_AR5K_PHY_SHIFT_5GHZ,4,2        ; @AR5K_PHY_SHIFT_5GHZ
	.comm	_AR5K_AR5210,8,3                ; @AR5K_AR5210
.subsections_via_symbols
