	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_nphy_set_rx_core_state
_b43_nphy_set_rx_core_state:            ## @b43_nphy_set_rx_core_state
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movl	%esi, (%r15)
	callq	_b43_mac_suspend
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_b43_nphy_stay_in_carrier_search
LBB0_2:
	movq	_B43_NPHY_RFSEQCA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_B43_NPHY_RFSEQCA_RXEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	$3, %ebx
	movq	_B43_NPHY_RFSEQCA_RXEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %eax
	shll	%cl, %eax
	movq	%r14, %rdi
	movl	%eax, %ecx
	callq	_b43_phy_maskset
	cmpl	$3, %ebx
	movq	_B43_NPHY_HPANT_SWTHRES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$30, %eax
	movl	$1, %edx
	cmovel	%eax, %edx
	movq	%r14, %rdi
	callq	_b43_phy_write
	movq	_B43_RFSEQ_RESET2RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_b43_nphy_force_rf_sequence
	cmpq	$0, 8(%r15)
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_b43_nphy_stay_in_carrier_search
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_mac_enable                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_NPHY_RFSEQCA,4,2           ## @B43_NPHY_RFSEQCA
	.comm	_B43_NPHY_RFSEQCA_RXEN,4,2      ## @B43_NPHY_RFSEQCA_RXEN
	.comm	_B43_NPHY_RFSEQCA_RXEN_SHIFT,4,2 ## @B43_NPHY_RFSEQCA_RXEN_SHIFT
	.comm	_B43_NPHY_HPANT_SWTHRES,4,2     ## @B43_NPHY_HPANT_SWTHRES
	.comm	_B43_RFSEQ_RESET2RX,4,2         ## @B43_RFSEQ_RESET2RX
	.no_dead_strip	_b43_nphy_set_rx_core_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43_nphy_set_rx_core_state
_b43_nphy_set_rx_core_state:            ; @b43_nphy_set_rx_core_state
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	str	w1, [x21]
	bl	_b43_mac_suspend
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_b43_nphy_stay_in_carrier_search
LBB0_2:
Lloh0:
	adrp	x8, _B43_NPHY_RFSEQCA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43_NPHY_RFSEQCA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _B43_NPHY_RFSEQCA_RXEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_NPHY_RFSEQCA_RXEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mvn	w2, w8
	and	w20, w20, #0x3
Lloh6:
	adrp	x8, _B43_NPHY_RFSEQCA_RXEN_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B43_NPHY_RFSEQCA_RXEN_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w3, w20, w8
	mov	x0, x19
	bl	_b43_phy_maskset
Lloh9:
	adrp	x8, _B43_NPHY_HPANT_SWTHRES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43_NPHY_HPANT_SWTHRES@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	cmp	w20, #3
	mov	w8, #30
	csinc	w2, w8, wzr, eq
	mov	x0, x19
	bl	_b43_phy_write
Lloh12:
	adrp	x8, _B43_RFSEQ_RESET2RX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B43_RFSEQ_RESET2RX@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_b43_nphy_force_rf_sequence
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_b43_nphy_stay_in_carrier_search
LBB0_4:
	mov	x0, x19
	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
	b	_b43_mac_enable
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_NPHY_RFSEQCA,4,2           ; @B43_NPHY_RFSEQCA
	.comm	_B43_NPHY_RFSEQCA_RXEN,4,2      ; @B43_NPHY_RFSEQCA_RXEN
	.comm	_B43_NPHY_RFSEQCA_RXEN_SHIFT,4,2 ; @B43_NPHY_RFSEQCA_RXEN_SHIFT
	.comm	_B43_NPHY_HPANT_SWTHRES,4,2     ; @B43_NPHY_HPANT_SWTHRES
	.comm	_B43_RFSEQ_RESET2RX,4,2         ; @B43_RFSEQ_RESET2RX
	.no_dead_strip	_b43_nphy_set_rx_core_state
.subsections_via_symbols
