	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_phy_workarounds_nphy_gainctrl_2057_rev5
_wlc_phy_workarounds_nphy_gainctrl_2057_rev5: ## @wlc_phy_workarounds_nphy_gainctrl_2057_rev5
	.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
	subq	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movaps	L___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna1_gain_db(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	L___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna2_gain_db(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gain_db+32(%rip), %rax
	movq	%rax, -96(%rbp)
	movaps	l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gain_db+16(%rip), %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gain_db(%rip), %xmm0
	movaps	%xmm0, -128(%rbp)
	movq	l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gainbits+32(%rip), %rax
	movq	%rax, -144(%rbp)
	movaps	l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gainbits+16(%rip), %xmm0
	movaps	%xmm0, -160(%rbp)
	movaps	l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gainbits(%rip), %xmm0
	movaps	%xmm0, -176(%rbp)
	movl	$28, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	movl	$8192, %ecx                     ## imm = 0x2000
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$50, %esi
	movl	$8192, %edx                     ## imm = 0x2000
	movl	$8192, %ecx                     ## imm = 0x2000
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$649, %esi                      ## imm = 0x289
	movl	$255, %edx
	movl	$70, %ecx
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$643, %esi                      ## imm = 0x283
	movl	$255, %edx
	movl	$60, %ecx
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$640, %esi                      ## imm = 0x280
	movl	$255, %edx
	movl	$60, %ecx
	callq	_mod_phy_reg
	movq	_NPHY_TBL_ID_GAIN1@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-64(%rbp), %r14
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$8, %ecx
	movl	$8, %r8d
	movq	%r14, %r9
	callq	_wlc_phy_table_write_nphy
	movq	_NPHY_TBL_ID_GAIN2@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$8, %ecx
	movl	$8, %r8d
	movq	%r14, %r9
	callq	_wlc_phy_table_write_nphy
	movl	(%r15), %esi
	leaq	-80(%rbp), %r14
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$16, %ecx
	movl	$8, %r8d
	movq	%r14, %r9
	callq	_wlc_phy_table_write_nphy
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	movl	$16, %ecx
	movl	$8, %r8d
	movq	%r14, %r9
	callq	_wlc_phy_table_write_nphy
	movl	(%r15), %esi
	leaq	-128(%rbp), %r14
	movq	%rbx, %rdi
	movl	$10, %edx
	movl	$32, %ecx
	movl	$8, %r8d
	movq	%r14, %r9
	callq	_wlc_phy_table_write_nphy
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movl	$10, %edx
	movl	$32, %ecx
	movl	$8, %r8d
	movq	%r14, %r9
	callq	_wlc_phy_table_write_nphy
	movq	_NPHY_TBL_ID_GAINBITS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-176(%rbp), %r14
	movq	%rbx, %rdi
	movl	$10, %edx
	movl	$32, %ecx
	movl	$8, %r8d
	movq	%r14, %r9
	callq	_wlc_phy_table_write_nphy
	movq	_NPHY_TBL_ID_GAINBITS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$10, %edx
	movl	$32, %ecx
	movl	$8, %r8d
	movq	%r14, %r9
	callq	_wlc_phy_table_write_nphy
	movq	%rbx, %rdi
	movl	$55, %esi
	movl	$116, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$685, %esi                      ## imm = 0x2AD
	movl	$116, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$56, %esi
	movl	$24, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$686, %esi                      ## imm = 0x2AE
	movl	$24, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$43, %esi
	movl	$232, %edx
	callq	_write_phy_reg
	movq	%rbx, %rdi
	movl	$65, %esi
	movl	$232, %edx
	callq	_write_phy_reg
	movl	(%rbx), %edi
	callq	_CHSPEC_IS20
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx), %r14d
	addl	$16, %r14d
	movq	%rbx, %rdi
	movl	$768, %esi                      ## imm = 0x300
	movl	$63, %edx
	movl	%r14d, %ecx
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$769, %esi                      ## imm = 0x301
	movl	$63, %edx
	movl	%r14d, %ecx
	callq	_mod_phy_reg
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna1_gain_db
L___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna1_gain_db:
	.long	8                               ## 0x8
	.long	13                              ## 0xd
	.long	17                              ## 0x11
	.long	22                              ## 0x16

	.p2align	4                               ## @__const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna2_gain_db
L___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna2_gain_db:
	.long	4294967294                      ## 0xfffffffe
	.long	7                               ## 0x7
	.long	11                              ## 0xb
	.long	15                              ## 0xf

	.section	__TEXT,__const
	.p2align	4                               ## @__const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gain_db
l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gain_db:
	.long	4294967292                      ## 0xfffffffc
	.long	4294967295                      ## 0xffffffff
	.long	2                               ## 0x2
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	5                               ## 0x5

	.p2align	4                               ## @__const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gainbits
l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gainbits:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3

	.comm	_NPHY_TBL_ID_GAIN1,4,2          ## @NPHY_TBL_ID_GAIN1
	.comm	_NPHY_TBL_ID_GAIN2,4,2          ## @NPHY_TBL_ID_GAIN2
	.comm	_NPHY_TBL_ID_GAINBITS1,4,2      ## @NPHY_TBL_ID_GAINBITS1
	.comm	_NPHY_TBL_ID_GAINBITS2,4,2      ## @NPHY_TBL_ID_GAINBITS2
	.no_dead_strip	_wlc_phy_workarounds_nphy_gainctrl_2057_rev5
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlc_phy_workarounds_nphy_gainctrl_2057_rev5
_wlc_phy_workarounds_nphy_gainctrl_2057_rev5: ; @wlc_phy_workarounds_nphy_gainctrl_2057_rev5
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna1_gain_db@PAGE
Lloh4:
	add	x8, x8, l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna1_gain_db@PAGEOFF
Lloh5:
	ldr	q1, [x8]
Lloh6:
	adrp	x8, l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna2_gain_db@PAGE
Lloh7:
	add	x8, x8, l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna2_gain_db@PAGEOFF
Lloh8:
	ldr	q0, [x8]
	stp	q0, q1, [x29, #-80]
Lloh9:
	adrp	x8, l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gain_db@PAGE
Lloh10:
	add	x8, x8, l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gain_db@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp, #48]
	ldr	x8, [x8, #32]
	str	x8, [sp, #80]
Lloh11:
	adrp	x8, l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gainbits@PAGE
Lloh12:
	add	x8, x8, l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gainbits@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [sp]
	ldr	x8, [x8, #32]
	str	x8, [sp, #32]
	mov	w1, #28
	mov	w2, #8192
	mov	w3, #8192
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #50
	mov	w2, #8192
	mov	w3, #8192
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #649
	mov	w2, #255
	mov	w3, #70
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #643
	mov	w2, #255
	mov	w3, #60
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #640
	mov	w2, #255
	mov	w3, #60
	bl	_mod_phy_reg
Lloh13:
	adrp	x21, _NPHY_TBL_ID_GAIN1@GOTPAGE
Lloh14:
	ldr	x21, [x21, _NPHY_TBL_ID_GAIN1@GOTPAGEOFF]
	ldr	w1, [x21]
	sub	x5, x29, #64
	mov	x0, x19
	mov	w2, #4
	mov	w3, #8
	mov	w4, #8
	bl	_wlc_phy_table_write_nphy
Lloh15:
	adrp	x22, _NPHY_TBL_ID_GAIN2@GOTPAGE
Lloh16:
	ldr	x22, [x22, _NPHY_TBL_ID_GAIN2@GOTPAGEOFF]
	ldr	w1, [x22]
	sub	x5, x29, #64
	mov	x0, x19
	mov	w2, #4
	mov	w3, #8
	mov	w4, #8
	bl	_wlc_phy_table_write_nphy
	ldr	w1, [x21]
	mov	w20, #16
	sub	x5, x29, #80
	mov	x0, x19
	mov	w2, #4
	mov	w3, #16
	mov	w4, #8
	bl	_wlc_phy_table_write_nphy
	ldr	w1, [x22]
	sub	x5, x29, #80
	mov	x0, x19
	mov	w2, #4
	mov	w3, #16
	mov	w4, #8
	bl	_wlc_phy_table_write_nphy
	ldr	w1, [x21]
	add	x5, sp, #48
	mov	x0, x19
	mov	w2, #10
	mov	w3, #32
	mov	w4, #8
	bl	_wlc_phy_table_write_nphy
	ldr	w1, [x22]
	add	x5, sp, #48
	mov	x0, x19
	mov	w2, #10
	mov	w3, #32
	mov	w4, #8
	bl	_wlc_phy_table_write_nphy
Lloh17:
	adrp	x8, _NPHY_TBL_ID_GAINBITS1@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NPHY_TBL_ID_GAINBITS1@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x5, sp
	mov	x0, x19
	mov	w2, #10
	mov	w3, #32
	mov	w4, #8
	bl	_wlc_phy_table_write_nphy
Lloh20:
	adrp	x8, _NPHY_TBL_ID_GAINBITS2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NPHY_TBL_ID_GAINBITS2@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x5, sp
	mov	x0, x19
	mov	w2, #10
	mov	w3, #32
	mov	w4, #8
	bl	_wlc_phy_table_write_nphy
	mov	x0, x19
	mov	w1, #55
	mov	w2, #116
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #685
	mov	w2, #116
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #56
	mov	w2, #24
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #686
	mov	w2, #24
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #43
	mov	w2, #232
	bl	_write_phy_reg
	mov	x0, x19
	mov	w1, #65
	mov	w2, #232
	bl	_write_phy_reg
	ldr	w0, [x19]
	bl	_CHSPEC_IS20
	cmp	x0, #0
	mov	w8, #18
	csel	w20, w20, w8, eq
	mov	x0, x19
	mov	w1, #768
	mov	w2, #63
	mov	x3, x20
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #769
	mov	w2, #63
	mov	x3, x20
	bl	_mod_phy_reg
	ldur	x8, [x29, #-40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAddLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna1_gain_db
l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna1_gain_db:
	.long	8                               ; 0x8
	.long	13                              ; 0xd
	.long	17                              ; 0x11
	.long	22                              ; 0x16

	.p2align	2                               ; @__const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna2_gain_db
l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.lna2_gain_db:
	.long	4294967294                      ; 0xfffffffe
	.long	7                               ; 0x7
	.long	11                              ; 0xb
	.long	15                              ; 0xf

	.section	__TEXT,__const
	.p2align	2                               ; @__const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gain_db
l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gain_db:
	.long	4294967292                      ; 0xfffffffc
	.long	4294967295                      ; 0xffffffff
	.long	2                               ; 0x2
	.long	5                               ; 0x5
	.long	5                               ; 0x5
	.long	5                               ; 0x5
	.long	5                               ; 0x5
	.long	5                               ; 0x5
	.long	5                               ; 0x5
	.long	5                               ; 0x5

	.p2align	2                               ; @__const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gainbits
l___const.wlc_phy_workarounds_nphy_gainctrl_2057_rev5.tia_gainbits:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3

	.comm	_NPHY_TBL_ID_GAIN1,4,2          ; @NPHY_TBL_ID_GAIN1
	.comm	_NPHY_TBL_ID_GAIN2,4,2          ; @NPHY_TBL_ID_GAIN2
	.comm	_NPHY_TBL_ID_GAINBITS1,4,2      ; @NPHY_TBL_ID_GAINBITS1
	.comm	_NPHY_TBL_ID_GAINBITS2,4,2      ; @NPHY_TBL_ID_GAINBITS2
	.no_dead_strip	_wlc_phy_workarounds_nphy_gainctrl_2057_rev5
.subsections_via_symbols
