	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_init_hang_checks
_ar9003_hw_init_hang_checks:            ## @ar9003_hw_init_hang_checks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_HW_BB_WATCHDOG@GOTPCREL(%rip), %rax
	movl	4(%rdi), %ecx
	orl	(%rax), %ecx
	movq	_HW_MAC_HANG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 4(%rdi)
	callq	_AR_SREV_9300_22
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_HW_PHYRESTART_CLC_WAR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%rbx)
LBB0_2:
	movq	%rbx, %rdi
	callq	_AR_SREV_9330
	testq	%rax, %rax
	movl	$25, %eax
	movl	$85, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_BB_WATCHDOG,4,2             ## @HW_BB_WATCHDOG
	.comm	_HW_MAC_HANG,4,2                ## @HW_MAC_HANG
	.comm	_HW_PHYRESTART_CLC_WAR,4,2      ## @HW_PHYRESTART_CLC_WAR
	.no_dead_strip	_ar9003_hw_init_hang_checks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_init_hang_checks
_ar9003_hw_init_hang_checks:            ; @ar9003_hw_init_hang_checks
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _HW_BB_WATCHDOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_BB_WATCHDOG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0, #4]
	orr	w8, w9, w8
Lloh3:
	adrp	x9, _HW_MAC_HANG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HW_MAC_HANG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0, #4]
	bl	_AR_SREV_9300_22
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _HW_PHYRESTART_CLC_WAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HW_PHYRESTART_CLC_WAR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
LBB0_2:
	mov	x0, x19
	bl	_AR_SREV_9330
	cmp	x0, #0
	mov	w8, #85
	mov	w9, #25
	csel	w8, w9, w8, eq
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_BB_WATCHDOG,4,2             ; @HW_BB_WATCHDOG
	.comm	_HW_MAC_HANG,4,2                ; @HW_MAC_HANG
	.comm	_HW_PHYRESTART_CLC_WAR,4,2      ; @HW_PHYRESTART_CLC_WAR
	.no_dead_strip	_ar9003_hw_init_hang_checks
.subsections_via_symbols
