	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_lcnphy_get_receive_power
_wlc_lcnphy_get_receive_power:          ## @wlc_lcnphy_get_receive_power
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	(%rsi), %rax
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	_lcnphy_23bitgaincode_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %esi
	jmp	LBB0_2
LBB0_3:
	movq	%rsi, %rbx
	xorl	%esi, %esi
	cmpq	$-1, %rax
	je	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	callq	_wlc_lcnphy_set_rx_gain
	movl	(%r15), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wlc_lcnphy_measure_digital_power ## TAILCALL
LBB0_4:
	movq	$0, (%rbx)
	xorl	%ecx, %ecx
	movq	_lcnphy_23bitgaincode_table@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rcx,4), %esi
	movq	%r14, %rdi
	callq	_wlc_lcnphy_set_rx_gain
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_wlc_lcnphy_measure_digital_power
	movq	(%rbx), %rdx
	leaq	1(%rdx), %rcx
	movq	%rcx, (%rbx)
	cmpq	$35, %rdx
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$700, %eax                      ## imm = 0x2BC
	jl	LBB0_5
LBB0_7:
	movq	%rdx, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lcnphy_23bitgaincode_table,8,3 ## @lcnphy_23bitgaincode_table
	.no_dead_strip	_wlc_lcnphy_get_receive_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_lcnphy_get_receive_power
_wlc_lcnphy_get_receive_power:          ; @wlc_lcnphy_get_receive_power
	.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	x19, x0
	ldr	x21, [x0]
	ldr	x8, [x1]
	tbnz	x8, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _lcnphy_23bitgaincode_table@GOTPAGE
Lloh1:
	ldr	x9, [x9, _lcnphy_23bitgaincode_table@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w1, [x9, x8, lsl #2]
	b	LBB0_4
LBB0_2:
	cmn	x8, #1
	b.eq	LBB0_5
; %bb.3:
	mov	w1, #0
LBB0_4:
	mov	x0, x19
	bl	_wlc_lcnphy_set_rx_gain
	ldr	w1, [x21]
	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	_wlc_lcnphy_measure_digital_power
LBB0_5:
	mov	x20, x1
	mov	x8, #0
	str	xzr, [x1]
Lloh3:
	adrp	x22, _lcnphy_23bitgaincode_table@GOTPAGE
Lloh4:
	ldr	x22, [x22, _lcnphy_23bitgaincode_table@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	ldr	w1, [x9, x8, lsl #2]
	mov	x0, x19
	bl	_wlc_lcnphy_set_rx_gain
	ldr	w1, [x21]
	mov	x0, x19
	bl	_wlc_lcnphy_measure_digital_power
	ldr	x9, [x20]
	add	x8, x9, #1
	str	x8, [x20]
	cmp	x9, #35
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #700
	b.lt	LBB0_6
LBB0_8:
	str	x9, [x20]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_lcnphy_23bitgaincode_table,8,3 ; @lcnphy_23bitgaincode_table
	.no_dead_strip	_wlc_lcnphy_get_receive_power
.subsections_via_symbols
