	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wlc_lcnphy_agc_temp_init
LCPI0_0:
	.long	2                               ## 0x2
	.long	17                              ## 0x11
	.long	59                              ## 0x3b
	.long	32                              ## 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wlc_lcnphy_agc_temp_init:              ## @wlc_lcnphy_agc_temp_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	(%rdi), %rbx
	movl	$1247, %esi                     ## imm = 0x4DF
	callq	_read_phy_reg
	movzbl	%al, %ecx
	xorl	%edx, %edx
	cmpl	$128, %ecx
	setb	%dl
	shll	$8, %edx
	addl	%edx, %ecx
	addl	$-256, %ecx
	movl	%ecx, (%rbx)
	movzbl	%ah, %eax
	xorl	%ecx, %ecx
	cmpl	$128, %eax
	setb	%cl
	shll	$8, %ecx
	addl	%ecx, %eax
	addl	$-256, %eax
	movl	%eax, 4(%rbx)
	leaq	-40(%rbp), %r15
	movq	%r15, -64(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [2,17,59,32]
	movups	%xmm0, -56(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wlc_lcnphy_read_table
	movl	-40(%rbp), %eax
	cmpl	$64, %eax
	jl	LBB0_2
## %bb.1:
	addl	$-128, %eax
	movl	%eax, -40(%rbp)
LBB0_2:
	movl	%eax, 8(%rbx)
	movl	-36(%rbp), %eax
	cmpl	$64, %eax
	jl	LBB0_4
## %bb.3:
	addl	$-128, %eax
	movl	%eax, -36(%rbp)
LBB0_4:
	movl	%eax, 12(%rbx)
	movq	%r14, %rdi
	movl	$1076, %esi                     ## imm = 0x434
	callq	_read_phy_reg
	movzbl	%al, %eax
	xorl	%ecx, %ecx
	cmpl	$128, %eax
	setb	%cl
	shll	$8, %ecx
	addl	%ecx, %eax
	addl	$-256, %eax
	cltq
	movq	%rax, 32(%rbx)
	movq	%r14, %rdi
	movl	$1060, %esi                     ## imm = 0x424
	callq	_read_phy_reg
	movzbl	%ah, %eax
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	movl	$1061, %esi                     ## imm = 0x425
	callq	_read_phy_reg
	movzbl	%al, %eax
	movl	%eax, 20(%rbx)
	movq	%r15, -64(%rbp)
	movl	$2, -56(%rbp)
	movq	_LCNPHY_TBL_ID_GAIN_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movabsq	$137438953500, %rax             ## imm = 0x200000001C
	movq	%rax, -48(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	callq	_wlc_lcnphy_read_table
	movl	-40(%rbp), %eax
	movl	%eax, 24(%rbx)
	movl	-36(%rbp), %eax
	movl	%eax, 28(%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LCNPHY_TBL_ID_GAIN_IDX,4,2     ## @LCNPHY_TBL_ID_GAIN_IDX
	.no_dead_strip	_wlc_lcnphy_agc_temp_init
.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 wlc_lcnphy_agc_temp_init
lCPI0_0:
	.long	2                               ; 0x2
	.long	17                              ; 0x11
	.long	59                              ; 0x3b
	.long	32                              ; 0x20
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	28                              ; 0x1c
	.long	32                              ; 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_wlc_lcnphy_agc_temp_init:              ; @wlc_lcnphy_agc_temp_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x20, [x0]
	mov	w1, #1247
	bl	_read_phy_reg
	lsr	w8, w0, #8
	fmov	s0, w0
	mov.s	v0[1], w8
	movi	d1, #0x0000ff000000ff
	and.8b	v0, v0, v1
	movi.2s	v1, #127
	cmhi.2s	v1, v0, v1
	bic.2s	v1, #255
	orr.8b	v0, v1, v0
	str	d0, [x20]
	mov	x8, sp
	str	x8, [sp, #8]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [sp, #16]
	add	x1, sp, #8
	mov	x0, x19
	bl	_wlc_lcnphy_read_table
	ldr	w8, [sp]
	cmp	w8, #64
	b.lt	LBB0_2
; %bb.1:
	sub	w8, w8, #128
	str	w8, [sp]
LBB0_2:
	str	w8, [x20, #8]
	ldr	w8, [sp, #4]
	cmp	w8, #64
	b.lt	LBB0_4
; %bb.3:
	sub	w8, w8, #128
	str	w8, [sp, #4]
LBB0_4:
	str	w8, [x20, #12]
	mov	x0, x19
	mov	w1, #1076
	bl	_read_phy_reg
	and	w8, w0, #0xff
	mov	w9, #-256
	cmp	w8, #127
	csel	w8, w9, wzr, hi
	bfxil	w8, w0, #0, #8
	sxtw	x8, w8
	str	x8, [x20, #32]
	mov	x0, x19
	mov	w1, #1060
	bl	_read_phy_reg
	ubfx	w8, w0, #8, #8
	str	w8, [x20, #16]
	mov	x0, x19
	mov	w1, #1061
	bl	_read_phy_reg
	and	w8, w0, #0xff
	str	w8, [x20, #20]
	mov	x8, sp
	str	x8, [sp, #8]
	mov	w8, #2
Lloh2:
	adrp	x9, _LCNPHY_TBL_ID_GAIN_IDX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LCNPHY_TBL_ID_GAIN_IDX@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [sp, #24]
	add	x1, sp, #8
	mov	x0, x19
	bl	_wlc_lcnphy_read_table
	ldr	d0, [sp]
	str	d0, [x20, #24]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LCNPHY_TBL_ID_GAIN_IDX,4,2     ; @LCNPHY_TBL_ID_GAIN_IDX
	.no_dead_strip	_wlc_lcnphy_agc_temp_init
.subsections_via_symbols
