	.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_by_distribution
_wlc_lcnphy_set_rx_gain_by_distribution: ## @wlc_lcnphy_set_rx_gain_by_distribution
	.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	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	24(%rbp), %ebx
	movl	16(%rbp), %eax
	andl	$15, %r13d
	shll	$12, %r8d
	movzwl	%r8w, %ecx
	andl	$15, %r9d
	shll	$8, %r9d
	orl	%ecx, %r9d
	andl	$3, %eax
	movl	%eax, %ecx
	shll	$6, %ecx
	orl	%r9d, %ecx
	shll	$4, %eax
	orl	%ecx, %eax
	movl	%ebx, %edx
	andl	$3, %edx
	leal	(%rax,%rdx,4), %ecx
	orl	%edx, %ecx
	movl	$1206, %esi                     ## imm = 0x4B6
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$1207, %esi                     ## imm = 0x4B7
	movl	$15, %edx
	movl	%r13d, %ecx
	callq	_mod_phy_reg
	shll	$11, %ebx
	movq	%r12, %rdi
	movl	$1201, %esi                     ## imm = 0x4B1
	movl	$6144, %edx                     ## imm = 0x1800
	movl	%ebx, %ecx
	callq	_mod_phy_reg
	movl	(%r12), %edi
	movl	$2, %esi
	callq	_LCNREV_LT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	%r15d, %ecx
	shll	$9, %ecx
	movq	%r12, %rdi
	movl	$1201, %esi                     ## imm = 0x4B1
	movl	$512, %edx                      ## imm = 0x200
	callq	_mod_phy_reg
	movl	$1024, %edx                     ## imm = 0x400
	movl	$10, %ecx
	jmp	LBB0_3
LBB0_2:
	movq	%r12, %rdi
	movl	$1201, %esi                     ## imm = 0x4B1
	movl	$1024, %edx                     ## imm = 0x400
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%r12, %rdi
	movl	$1201, %esi                     ## imm = 0x4B1
	movl	$32768, %edx                    ## imm = 0x8000
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movl	$512, %edx                      ## imm = 0x200
	movl	$9, %ecx
LBB0_3:
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	movq	%r12, %rdi
	movl	$1201, %esi                     ## imm = 0x4B1
	movl	%r15d, %ecx
	callq	_mod_phy_reg
	xorl	%ecx, %ecx
	testl	%r14d, %r14d
	sete	%cl
	movq	%r12, %rdi
	movl	$1101, %esi                     ## imm = 0x44D
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mod_phy_reg                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_wlc_lcnphy_set_rx_gain_by_distribution
.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_by_distribution
_wlc_lcnphy_set_rx_gain_by_distribution: ; @wlc_lcnphy_set_rx_gain_by_distribution
	.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	x22, x7
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	and	w23, w3, #0xf
	ubfiz	w3, w5, #8, #4
	bfi	w3, w4, #12, #4
	and	w8, w6, #0x3
	bfi	w3, w8, #6, #2
	bfi	w3, w8, #4, #2
	and	w8, w7, #0x3
	bfi	w3, w8, #2, #2
	bfxil	w3, w7, #0, #2
	mov	w1, #1206
	mov	w2, #65535
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1207
	mov	w2, #15
	mov	x3, x23
	bl	_mod_phy_reg
	lsl	w3, w22, #11
	mov	x0, x19
	mov	w1, #1201
	mov	w2, #6144
	bl	_mod_phy_reg
	ldr	w0, [x19]
	mov	w1, #2
	bl	_LCNREV_LT
	cbz	x0, LBB0_2
; %bb.1:
	lsl	w3, w21, #9
	mov	x0, x19
	mov	w1, #1201
	mov	w2, #512
	bl	_mod_phy_reg
	mov	w2, #1024
	mov	w8, #10
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #1201
	mov	w2, #1024
	mov	w3, #0
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1201
	mov	w2, #32768
	mov	w3, #0
	bl	_mod_phy_reg
	mov	w2, #512
	mov	w8, #9
LBB0_3:
	lsl	w3, w21, w8
	mov	x0, x19
	mov	w1, #1201
	bl	_mod_phy_reg
	cmp	w20, #0
	cset	w3, eq
	mov	x0, x19
	mov	w1, #1101
	mov	w2, #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	_mod_phy_reg
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_wlc_lcnphy_set_rx_gain_by_distribution
.subsections_via_symbols
