	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_check_alive           ## -- Begin function ath9k_hw_check_alive
	.p2align	4, 0x90
_ath9k_hw_check_alive:                  ## @ath9k_hw_check_alive
	.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	%rdi, %rbx
	movq	_AR_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_REG_READ
	cmpl	$-559038737, %eax               ## imm = 0xDEADBEEF
	jne	LBB0_1
LBB0_11:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_1:
	movq	%rbx, %rdi
	callq	_AR_SREV_9300
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_ath9k_hw_detect_mac_hang
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_12
LBB0_3:
	movq	%rbx, %rdi
	callq	_AR_SREV_9285_12_OR_LATER
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_4
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_AR_OBS_BUS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movl	%eax, %r13d
	andl	$2122317807, %eax               ## imm = 0x7E7FFFEF
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %r15d
	andl	$2113932032, %r15d              ## imm = 0x7E000B00
	movl	$-51, %r12d
	movl	$1, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_AR_OBS_BUS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	cmpl	%r13d, %eax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %edi
	callq	_udelay
	cmpl	$7349248, -44(%rbp)             ## 4-byte Folded Reload
                                        ## imm = 0x702400
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$402656000, %r15d               ## imm = 0x18000B00
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$1375734528, %r15d              ## imm = 0x52000B00
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$503316480, %r15d               ## imm = 0x1E000000
	je	LBB0_10
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_CFG,4,2                     ## @AR_CFG
	.comm	_AR_OBS_BUS_1,4,2               ## @AR_OBS_BUS_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath9k_hw_check_alive           ; -- Begin function ath9k_hw_check_alive
	.p2align	2
_ath9k_hw_check_alive:                  ; @ath9k_hw_check_alive
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _AR_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_REG_READ
	mov	w8, #48879
	movk	w8, #57005, lsl #16
	cmp	w0, w8
	b.ne	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_AR_SREV_9300
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_ath9k_hw_detect_mac_hang
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_AR_SREV_9285_12_OR_LATER
	cbz	x0, LBB0_7
LBB0_5:
	mov	w0, #1
LBB0_6:
	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_7:
Lloh3:
	adrp	x21, _AR_OBS_BUS_1@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AR_OBS_BUS_1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_REG_READ
	mov	x20, x0
	mov	w8, #65519
	movk	w8, #32383, lsl #16
	and	w22, w0, w8
	mov	w8, #2816
	movk	w8, #32256, lsl #16
	and	w23, w0, w8
	mov	w24, #-51
	mov	w25, #9216
	movk	w25, #112, lsl #16
	mov	w26, #2816
	movk	w26, #6144, lsl #16
	mov	w27, #2816
	movk	w27, #20992, lsl #16
	mov	w28, #503316480
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	adds	w24, w24, #1
	b.hs	LBB0_1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x19
	bl	_REG_READ
	cmp	w0, w20
	b.ne	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
	bl	_udelay
	cmp	w22, w25
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w23, w26
	b.eq	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w23, w27
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w23, w28
	b.eq	LBB0_8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_CFG,4,2                     ; @AR_CFG
	.comm	_AR_OBS_BUS_1,4,2               ; @AR_OBS_BUS_1
.subsections_via_symbols
