	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_hw_bb_watchdog_check    ## -- Begin function ar9003_hw_bb_watchdog_check
	.p2align	4, 0x90
_ar9003_hw_bb_watchdog_check:           ## @ar9003_hw_bb_watchdog_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	%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, %r15
	movl	(%rdi), %eax
	xorl	%r14d, %r14d
	cmpl	$67110200, %eax                 ## imm = 0x4000538
	jle	LBB0_1
## %bb.6:
	cmpl	$318767114, %eax                ## imm = 0x1300000A
	je	LBB0_11
## %bb.7:
	cmpl	$67111689, %eax                 ## imm = 0x4000B09
	je	LBB0_10
## %bb.8:
	cmpl	$67110201, %eax                 ## imm = 0x4000539
	jne	LBB0_10
## %bb.9:
	movq	_AR_PHY_RADAR_0@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_REG_READ
	movq	_AR_PHY_RADAR_0_FIRPWR@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%esi, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	$127, %edi
	callq	_SM
	orl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_REG_WRITE
	movl	$1, %edi
	callq	_udelay
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_REG_READ
	movl	(%r13), %esi
	movl	%esi, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_AR9300_DFS_FIRPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SM
	orl	%eax, %ebx
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_REG_WRITE
	jmp	LBB0_11
LBB0_1:
	cmpl	$67108874, %eax                 ## imm = 0x400000A
	je	LBB0_10
## %bb.2:
	cmpl	$67109897, %eax                 ## imm = 0x4000409
	jne	LBB0_10
## %bb.3:
	movq	%r15, %rdi
	callq	_AR_SREV_9340
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r15, %rdi
	callq	_AR_SREV_9531
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	%r15, %rdi
	callq	_AR_SREV_9561
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_11
LBB0_10:
	movl	$1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_RADAR_0,4,2             ## @AR_PHY_RADAR_0
	.comm	_AR_PHY_RADAR_0_FIRPWR,4,2      ## @AR_PHY_RADAR_0_FIRPWR
	.comm	_AR9300_DFS_FIRPWR,4,2          ## @AR9300_DFS_FIRPWR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar9003_hw_bb_watchdog_check    ; -- Begin function ar9003_hw_bb_watchdog_check
	.p2align	2
_ar9003_hw_bb_watchdog_check:           ; @ar9003_hw_bb_watchdog_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, x0
	ldr	w8, [x0]
	mov	w9, #1336
	movk	w9, #1024, lsl #16
	cmp	w8, w9
	b.le	LBB0_5
; %bb.1:
	mov	w9, #10
	movk	w9, #4864, lsl #16
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.2:
	mov	w9, #2825
	movk	w9, #1024, lsl #16
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.3:
	mov	w9, #1337
	movk	w9, #1024, lsl #16
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.4:
Lloh0:
	adrp	x20, _AR_PHY_RADAR_0@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AR_PHY_RADAR_0@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_READ
Lloh2:
	adrp	x21, _AR_PHY_RADAR_0_FIRPWR@GOTPAGE
Lloh3:
	ldr	x21, [x21, _AR_PHY_RADAR_0_FIRPWR@GOTPAGEOFF]
	ldr	w1, [x21]
	bic	w22, w0, w1
	mov	w0, #127
	bl	_SM
	orr	w2, w22, w0
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_WRITE
	mov	w0, #1
	bl	_udelay
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_READ
	ldr	w1, [x21]
	bic	w21, w0, w1
Lloh4:
	adrp	x8, _AR9300_DFS_FIRPWR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR9300_DFS_FIRPWR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_SM
	orr	w2, w0, w21
	ldr	w1, [x20]
	mov	x0, x19
	bl	_REG_WRITE
	b	LBB0_9
LBB0_5:
	mov	w9, #10
	movk	w9, #1024, lsl #16
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.6:
	mov	w9, #1033
	movk	w9, #1024, lsl #16
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_AR_SREV_9340
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_AR_SREV_9531
	cbz	w0, LBB0_12
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	w0, #1
LBB0_11:
	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
LBB0_12:
	mov	x0, x19
	bl	_AR_SREV_9561
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_RADAR_0,4,2             ; @AR_PHY_RADAR_0
	.comm	_AR_PHY_RADAR_0_FIRPWR,4,2      ; @AR_PHY_RADAR_0_FIRPWR
	.comm	_AR9300_DFS_FIRPWR,4,2          ; @AR9300_DFS_FIRPWR
.subsections_via_symbols
