	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcms_b_radio_read_hwdisabled
_brcms_b_radio_read_hwdisabled:         ## @brcms_b_radio_read_hwdisabled
	.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), %r12d
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.1:
	movq	_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_brcms_b_xtal
LBB0_2:
	movl	4(%r15), %r13d
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.3:
	movl	12(%r15), %edi
	movl	$18, %esi
	callq	_D11REV_GE
	xorl	%esi, %esi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_SICF_PCLKE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_5:
	movl	8(%r15), %edi
	callq	_bcma_core_enable
	movq	%r15, %rdi
	callq	_brcms_c_mctrl_reset
LBB0_6:
	movl	8(%r15), %ebx
	movq	_phydebug@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_D11REGOFFS
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bcma_read32
	movl	%eax, %r14d
	movq	_PDBG_RFD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.8:
	testl	%r12d, %r12d
	je	LBB0_9
LBB0_10:
	xorl	%eax, %eax
	testl	%r14d, %ebx
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	8(%r15), %edi
	xorl	%esi, %esi
	callq	_bcma_core_disable
	testl	%r12d, %r12d
	jne	LBB0_10
LBB0_9:
	movq	_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_brcms_b_xtal
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ON,4,2                         ## @ON
	.comm	_SICF_PCLKE,4,2                 ## @SICF_PCLKE
	.comm	_phydebug,4,2                   ## @phydebug
	.comm	_PDBG_RFD,4,2                   ## @PDBG_RFD
	.comm	_OFF,4,2                        ## @OFF
	.no_dead_strip	_brcms_b_radio_read_hwdisabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcms_b_radio_read_hwdisabled
_brcms_b_radio_read_hwdisabled:         ; @brcms_b_radio_read_hwdisabled
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	w21, [x0]
	cbz	w21, LBB0_5
; %bb.1:
	ldr	w22, [x19, #4]
	cbz	w22, LBB0_6
LBB0_2:
	ldr	w20, [x19, #8]
Lloh0:
	adrp	x8, _phydebug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _phydebug@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_D11REGOFFS
	mov	x1, x0
	mov	x0, x20
	bl	_bcma_read32
	mov	x20, x0
Lloh3:
	adrp	x8, _PDBG_RFD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PDBG_RFD@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	cbz	w22, LBB0_7
; %bb.3:
	cbz	w21, LBB0_8
LBB0_4:
	tst	w23, w20
	cset	w0, ne
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh6:
	adrp	x8, _ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ON@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_brcms_b_xtal
	ldr	w22, [x19, #4]
	cbnz	w22, LBB0_2
LBB0_6:
	ldr	w0, [x19, #12]
	mov	w1, #18
	bl	_D11REV_GE
Lloh9:
	adrp	x8, _SICF_PCLKE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SICF_PCLKE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w1, wzr, w8, eq
	ldr	w0, [x19, #8]
	bl	_bcma_core_enable
	mov	x0, x19
	bl	_brcms_c_mctrl_reset
	b	LBB0_2
LBB0_7:
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_bcma_core_disable
	cbnz	w21, LBB0_4
LBB0_8:
Lloh12:
	adrp	x8, _OFF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OFF@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_brcms_b_xtal
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ON,4,2                         ; @ON
	.comm	_SICF_PCLKE,4,2                 ; @SICF_PCLKE
	.comm	_phydebug,4,2                   ; @phydebug
	.comm	_PDBG_RFD,4,2                   ; @PDBG_RFD
	.comm	_OFF,4,2                        ; @OFF
	.no_dead_strip	_brcms_b_radio_read_hwdisabled
.subsections_via_symbols
