	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_gphy_set_baseband_attenuation ## -- Begin function b43_gphy_set_baseband_attenuation
	.p2align	4, 0x90
_b43_gphy_set_baseband_attenuation:     ## @b43_gphy_set_baseband_attenuation
	.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
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	_B43_PHY_DACCTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.2:
	shll	$2, %ebx
	movq	%r14, %rdi
	movl	$65475, %edx                    ## imm = 0xFFC3
	jmp	LBB0_3
LBB0_5:
	movq	_B43_MMIO_PHY0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_b43_read16
	andl	$65520, %eax                    ## imm = 0xFFF0
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_write16                    ## TAILCALL
LBB0_4:
	shll	$3, %ebx
	movq	%r14, %rdi
	movl	$65415, %edx                    ## imm = 0xFF87
LBB0_3:
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_b43_phy_maskset                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_MMIO_PHY0,4,2              ## @B43_MMIO_PHY0
	.comm	_B43_PHY_DACCTL,4,2             ## @B43_PHY_DACCTL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_b43_gphy_set_baseband_attenuation ; -- Begin function b43_gphy_set_baseband_attenuation
	.p2align	2
_b43_gphy_set_baseband_attenuation:     ; @b43_gphy_set_baseband_attenuation
	.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	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _B43_PHY_DACCTL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B43_PHY_DACCTL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.2:
	lsl	w3, w20, #2
	mov	x0, x19
	mov	w2, #65475
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _B43_MMIO_PHY0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _B43_MMIO_PHY0@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_b43_read16
	and	w8, w0, #0xfff0
	orr	w2, w8, w20
	mov	x0, x19
	mov	x1, x21
	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_write16
LBB0_4:
	lsl	w3, w20, #3
	mov	x0, x19
	mov	w2, #65415
LBB0_5:
	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_phy_maskset
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_MMIO_PHY0,4,2              ; @B43_MMIO_PHY0
	.comm	_B43_PHY_DACCTL,4,2             ; @B43_PHY_DACCTL
.subsections_via_symbols
