	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_antenna_check
_ath9k_antenna_check:                   ## @ath9k_antenna_check
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movl	(%rbx), %eax
	movq	_ATH9K_HW_CAP_ANT_DIV_COMB@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.1:
	movq	(%r14), %rsi
	cmpq	%rsi, (%r12)
	jne	LBB0_2
## %bb.4:
	movl	$0, 8(%r12)
	jmp	LBB0_5
LBB0_2:
	movl	8(%r12), %ecx
	leal	1(%rcx), %edx
	movl	%edx, 8(%r12)
	cmpl	$2, %ecx
	jl	LBB0_5
## %bb.3:
	movq	%r12, %rdi
	callq	_ath_setdefantenna
	movl	(%rbx), %eax
LBB0_5:
	movq	_ATH9K_HW_CAP_BT_ANT_DIV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.6:
	cmpq	$0, (%r15)
	je	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_ant_comb_scan              ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH9K_HW_CAP_ANT_DIV_COMB,4,2  ## @ATH9K_HW_CAP_ANT_DIV_COMB
	.comm	_ATH9K_HW_CAP_BT_ANT_DIV,4,2    ## @ATH9K_HW_CAP_BT_ANT_DIV
	.no_dead_strip	_ath9k_antenna_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_antenna_check
_ath9k_antenna_check:                   ; @ath9k_antenna_check
	.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, x1
	mov	x20, x0
	ldr	x22, [x0, #16]
	mov	x0, x22
	bl	_ath9k_hw_common
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _ATH9K_HW_CAP_ANT_DIV_COMB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ATH9K_HW_CAP_ANT_DIV_COMB@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	x9, [x20]
	ldr	x1, [x19]
	cmp	x9, x1
	b.ne	LBB0_3
; %bb.2:
	str	wzr, [x20, #8]
	b	LBB0_5
LBB0_3:
	ldr	w9, [x20, #8]
	add	w10, w9, #1
	str	w10, [x20, #8]
	cmp	w9, #2
	b.lt	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_ath_setdefantenna
	ldr	w8, [x22]
LBB0_5:
Lloh3:
	adrp	x9, _ATH9K_HW_CAP_BT_ANT_DIV@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH9K_HW_CAP_BT_ANT_DIV@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	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
	b	_ath_ant_comb_scan
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH9K_HW_CAP_ANT_DIV_COMB,4,2  ; @ATH9K_HW_CAP_ANT_DIV_COMB
	.comm	_ATH9K_HW_CAP_BT_ANT_DIV,4,2    ; @ATH9K_HW_CAP_BT_ANT_DIV
	.no_dead_strip	_ath9k_antenna_check
.subsections_via_symbols
