	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9002_hw_init_hang_checks
_ar9002_hw_init_hang_checks:            ## @ar9002_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
	callq	_AR_SREV_9100
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_AR_SREV_9160
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_HW_BB_RIFS_HANG@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	_HW_BB_DFS_HANG@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_3:
	movq	%rbx, %rdi
	callq	_AR_SREV_9280
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_HW_BB_RX_CLEAR_STUCK_HANG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_AR_SREV_5416
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_AR_SREV_9100
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_AR_SREV_9160
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	_HW_MAC_HANG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HW_BB_RIFS_HANG,4,2            ## @HW_BB_RIFS_HANG
	.comm	_HW_BB_DFS_HANG,4,2             ## @HW_BB_DFS_HANG
	.comm	_HW_BB_RX_CLEAR_STUCK_HANG,4,2  ## @HW_BB_RX_CLEAR_STUCK_HANG
	.comm	_HW_MAC_HANG,4,2                ## @HW_MAC_HANG
	.no_dead_strip	_ar9002_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 ar9002_hw_init_hang_checks
_ar9002_hw_init_hang_checks:            ; @ar9002_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
	bl	_AR_SREV_9100
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_AR_SREV_9160
	cbz	x0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _HW_BB_RIFS_HANG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HW_BB_RIFS_HANG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh3:
	adrp	x9, _HW_BB_DFS_HANG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HW_BB_DFS_HANG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:
	mov	x0, x19
	bl	_AR_SREV_9280
	cbz	x0, LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _HW_BB_RX_CLEAR_STUCK_HANG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HW_BB_RX_CLEAR_STUCK_HANG@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	mov	x0, x19
	bl	_AR_SREV_5416
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_AR_SREV_9100
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_AR_SREV_9160
	cbz	x0, LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _HW_MAC_HANG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HW_MAC_HANG@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HW_BB_RIFS_HANG,4,2            ; @HW_BB_RIFS_HANG
	.comm	_HW_BB_DFS_HANG,4,2             ; @HW_BB_DFS_HANG
	.comm	_HW_BB_RX_CLEAR_STUCK_HANG,4,2  ; @HW_BB_RX_CLEAR_STUCK_HANG
	.comm	_HW_MAC_HANG,4,2                ; @HW_MAC_HANG
	.no_dead_strip	_ar9002_hw_init_hang_checks
.subsections_via_symbols
