	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_lcnphy_set_rx_gain
_wlc_lcnphy_set_rx_gain:                ## @wlc_lcnphy_set_rx_gain
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	xorl	%ecx, %ecx
	testl	$268435456, %esi                ## imm = 0x10000000
	sete	%cl
	movl	%esi, %r13d
	shrl	$29, %r13d
	andl	$1, %r13d
	movl	%esi, %ebx
	shrl	$4, %ebx
	movl	%esi, %eax
	andl	$3840, %eax                     ## imm = 0xF00
	movl	%esi, %edx
	andl	$61440, %edx                    ## imm = 0xF000
	movl	%esi, %r15d
	shrl	$16, %r15d
	andl	$15, %r15d
	andl	$3, %esi
	leal	(%rsi,%rsi,4), %esi
	andl	$3, %ebx
	movl	%ebx, %edi
	shll	$4, %edi
	orl	%esi, %edi
	shll	$6, %ebx
	orl	%eax, %ebx
	orl	%edi, %ebx
	orl	%edx, %ebx
	movq	%r14, %rdi
	movl	$1101, %esi                     ## imm = 0x44D
	movl	$1, %edx
	callq	_mod_phy_reg
	movl	%r13d, %ecx
	shll	$9, %ecx
	movq	%r14, %rdi
	movl	$1201, %esi                     ## imm = 0x4B1
	movl	$512, %edx                      ## imm = 0x200
	callq	_mod_phy_reg
	shll	$10, %r13d
	movq	%r14, %rdi
	movl	$1201, %esi                     ## imm = 0x4B1
	movl	$1024, %edx                     ## imm = 0x400
	movl	%r13d, %ecx
	callq	_mod_phy_reg
	movq	%r14, %rdi
	movl	$1206, %esi                     ## imm = 0x4B6
	movl	$65535, %edx                    ## imm = 0xFFFF
	movl	%ebx, %ecx
	callq	_mod_phy_reg
	movq	%r14, %rdi
	movl	$1207, %esi                     ## imm = 0x4B7
	movl	$15, %edx
	movl	%r15d, %ecx
	callq	_mod_phy_reg
	movl	(%r14), %edi
	callq	_CHSPEC_IS2G
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	andl	$15, %r12d
	movl	%r12d, %ecx
	shll	$11, %ecx
	movq	%r14, %rdi
	movl	$1201, %esi                     ## imm = 0x4B1
	movl	$6144, %edx                     ## imm = 0x1800
	callq	_mod_phy_reg
	shll	$3, %r12d
	movq	%r14, %rdi
	movl	$1254, %esi                     ## imm = 0x4E6
	movl	$24, %edx
	movl	%r12d, %ecx
	callq	_mod_phy_reg
LBB0_2:
	movq	%r14, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlc_lcnphy_rx_gain_override_enable ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wlc_lcnphy_set_rx_gain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_lcnphy_set_rx_gain
_wlc_lcnphy_set_rx_gain:                ; @wlc_lcnphy_set_rx_gain
	.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	x20, x1
	mov	x19, x0
	mov	w8, #1
	bic	w3, w8, w1, lsr #28
	ubfx	w23, w1, #29, #1
	and	w8, w1, #0xf00
	and	w9, w1, #0xf000
	ubfx	w21, w1, #16, #4
	and	w10, w1, #0x3
	bfi	w10, w10, #2, #2
	ubfx	w11, w1, #4, #2
	bfi	w10, w11, #4, #2
	bfi	w10, w11, #6, #2
	orr	w8, w10, w8
	orr	w22, w8, w9
	mov	w1, #1101
	mov	w2, #1
	bl	_mod_phy_reg
	lsl	w3, w23, #9
	mov	x0, x19
	mov	w1, #1201
	mov	w2, #512
	bl	_mod_phy_reg
	lsl	w3, w23, #10
	mov	x0, x19
	mov	w1, #1201
	mov	w2, #1024
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1206
	mov	w2, #65535
	mov	x3, x22
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1207
	mov	w2, #15
	mov	x3, x21
	bl	_mod_phy_reg
	ldr	w0, [x19]
	bl	_CHSPEC_IS2G
	cbz	x0, LBB0_2
; %bb.1:
	and	w20, w20, #0xf
	lsl	w3, w20, #11
	mov	x0, x19
	mov	w1, #1201
	mov	w2, #6144
	bl	_mod_phy_reg
	lsl	w3, w20, #3
	mov	x0, x19
	mov	w1, #1254
	mov	w2, #24
	bl	_mod_phy_reg
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	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
	b	_wlc_lcnphy_rx_gain_override_enable
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wlc_lcnphy_set_rx_gain
.subsections_via_symbols
