	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function b43_nphy_op_prepare_structs
LCPI0_0:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_b43_nphy_op_prepare_structs:           ## @b43_nphy_op_prepare_structs
	.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
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	16(%rdi), %rax
	movq	32(%rax), %r15
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	(%rbx), %eax
	leal	-3(%rax), %ecx
	xorl	%edx, %edx
	cmpl	$2, %ecx
	setb	%dl
	movl	%edx, (%r14)
	cmpl	$3, %eax
	jl	LBB0_1
## %bb.2:
	movq	_B43_SPUR_AVOID_AUTO@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_B43_SPUR_AVOID_DISABLE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,2,3,2]
	movups	%xmm0, 4(%r14)
	movq	24(%r14), %rax
	movabsq	$549755814016, %rcx             ## imm = 0x8000000080
	movq	%rcx, (%rax)
	movq	$0, 32(%r14)
	movl	(%rbx), %eax
	cmpl	$2, %eax
	jle	LBB0_4
## %bb.13:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 32(%r14)
	xorl	%eax, %eax
	cmpl	$2, 12(%r15)
	sete	%al
	movl	%eax, 40(%r14)
	xorl	%eax, %eax
	cmpl	$2, 8(%r15)
	sete	%al
	movl	%eax, 44(%r14)
	jmp	LBB0_14
LBB0_4:
	movq	16(%rbx), %rcx
	movq	(%rcx), %rdx
	movq	_PCI_VENDOR_ID_APPLE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_6
## %bb.5:
	movl	8(%rcx), %ecx
	addl	$-11, %ecx
	cmpl	$2, %ecx
	jae	LBB0_6
## %bb.12:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 32(%r14)
	jmp	LBB0_14
LBB0_6:
	cmpl	$4, (%r15)
	jl	LBB0_14
## %bb.7:
	movl	4(%r15), %ecx
	cmpl	$2, %eax
	jl	LBB0_10
## %bb.8:
	movq	_B43_BFL2_TXPWRCTRL_EN@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_10
## %bb.9:
	movl	$1, 32(%r14)
	jmp	LBB0_14
LBB0_10:
	movq	_B43_BFL2_5G_PWRGAIN@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.11:
	movl	$1, 36(%r14)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_SPUR_AVOID_AUTO,4,2        ## @B43_SPUR_AVOID_AUTO
	.comm	_B43_SPUR_AVOID_DISABLE,4,2     ## @B43_SPUR_AVOID_DISABLE
	.comm	_PCI_VENDOR_ID_APPLE,8,3        ## @PCI_VENDOR_ID_APPLE
	.comm	_B43_BFL2_TXPWRCTRL_EN,4,2      ## @B43_BFL2_TXPWRCTRL_EN
	.comm	_B43_BFL2_5G_PWRGAIN,4,2        ## @B43_BFL2_5G_PWRGAIN
	.comm	_B43_BUS_SSB,8,3                ## @B43_BUS_SSB
	.comm	_SSB_BUSTYPE_PCI,8,3            ## @SSB_BUSTYPE_PCI
	.no_dead_strip	_b43_nphy_op_prepare_structs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function b43_nphy_op_prepare_structs
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_b43_nphy_op_prepare_structs:           ; @b43_nphy_op_prepare_structs
	.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, x0
	ldp	x19, x8, [x0, #8]
	ldr	x21, [x8, #32]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	ldr	w8, [x20]
	sub	w9, w8, #3
	cmp	w9, #2
	cset	w9, lo
	str	w9, [x19]
Lloh0:
	adrp	x9, _B43_SPUR_AVOID_AUTO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B43_SPUR_AVOID_AUTO@GOTPAGEOFF]
Lloh2:
	adrp	x10, _B43_SPUR_AVOID_DISABLE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _B43_SPUR_AVOID_DISABLE@GOTPAGEOFF]
	cmp	w8, #2
	csel	x8, x9, x10, gt
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #4]
	ldr	x8, [x19, #24]
	movi.2s	v0, #128
	str	d0, [x8]
	str	xzr, [x19, #32]
	ldr	w8, [x20]
	cmp	w8, #2
	b.le	LBB0_2
; %bb.1:
	movi.2s	v0, #1
	str	d0, [x19, #32]
	ldr	d1, [x21, #8]
	movi.2s	v2, #2
	cmeq.2s	v1, v1, v2
	and.8b	v0, v1, v0
	rev64.2s	v0, v0
	str	d0, [x19, #40]
	b	LBB0_11
LBB0_2:
	ldr	x9, [x20, #16]
	ldr	x10, [x9]
Lloh6:
	adrp	x11, _PCI_VENDOR_ID_APPLE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PCI_VENDOR_ID_APPLE@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.3:
	ldr	w9, [x9, #8]
	sub	w9, w9, #11
	cmp	w9, #2
	b.hs	LBB0_5
; %bb.4:
	movi.2s	v0, #1
	str	d0, [x19, #32]
	b	LBB0_11
LBB0_5:
	ldr	w9, [x21]
	cmp	w9, #4
	b.lt	LBB0_11
; %bb.6:
	ldr	w9, [x21, #4]
	cmp	w8, #2
	b.lt	LBB0_9
; %bb.7:
Lloh9:
	adrp	x8, _B43_BFL2_TXPWRCTRL_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _B43_BFL2_TXPWRCTRL_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_9
; %bb.8:
	mov	w8, #1
	str	w8, [x19, #32]
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x8, _B43_BFL2_5G_PWRGAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B43_BFL2_5G_PWRGAIN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x19, #36]
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
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_SPUR_AVOID_AUTO,4,2        ; @B43_SPUR_AVOID_AUTO
	.comm	_B43_SPUR_AVOID_DISABLE,4,2     ; @B43_SPUR_AVOID_DISABLE
	.comm	_PCI_VENDOR_ID_APPLE,8,3        ; @PCI_VENDOR_ID_APPLE
	.comm	_B43_BFL2_TXPWRCTRL_EN,4,2      ; @B43_BFL2_TXPWRCTRL_EN
	.comm	_B43_BFL2_5G_PWRGAIN,4,2        ; @B43_BFL2_5G_PWRGAIN
	.comm	_B43_BUS_SSB,8,3                ; @B43_BUS_SSB
	.comm	_SSB_BUSTYPE_PCI,8,3            ; @SSB_BUSTYPE_PCI
	.no_dead_strip	_b43_nphy_op_prepare_structs
.subsections_via_symbols
