	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlc_lcnphy_set_tx_pwr_soft_ctrl
_wlc_lcnphy_set_tx_pwr_soft_ctrl:       ## @wlc_lcnphy_set_tx_pwr_soft_ctrl
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movaps	L___const.wlc_lcnphy_set_tx_pwr_soft_ctrl.cck_offset(%rip), %xmm0
	movaps	%xmm0, -48(%rbp)
	callq	_wlc_lcnphy_tssi_based_pwr_ctrl_enabled
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$1188, %esi                     ## imm = 0x4A4
	movl	$16384, %edx                    ## imm = 0x4000
	movl	$16384, %ecx                    ## imm = 0x4000
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$1188, %esi                     ## imm = 0x4A4
	movl	$16384, %edx                    ## imm = 0x4000
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$1754, %esi                     ## imm = 0x6DA
	movl	$64, %edx
	callq	_or_phy_reg
	movq	_LCNPHY_TBL_ID_TXPWRCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movabsq	$17179869216, %rax              ## imm = 0x400000020
	movq	%rax, -72(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -64(%rbp)
	movq	_LCNPHY_TX_PWR_CTRL_RATE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	-72(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$0, -76(%rbp)
	movl	$1, -68(%rbp)
	leaq	-76(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$836, -56(%rbp)                 ## imm = 0x344
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$837, -56(%rbp)                 ## imm = 0x345
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$838, -56(%rbp)                 ## imm = 0x346
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$839, -56(%rbp)                 ## imm = 0x347
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$840, -56(%rbp)                 ## imm = 0x348
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$841, -56(%rbp)                 ## imm = 0x349
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$842, -56(%rbp)                 ## imm = 0x34A
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$843, -56(%rbp)                 ## imm = 0x34B
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$844, -56(%rbp)                 ## imm = 0x34C
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$845, -56(%rbp)                 ## imm = 0x34D
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$846, -56(%rbp)                 ## imm = 0x34E
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$847, -56(%rbp)                 ## imm = 0x34F
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$848, -56(%rbp)                 ## imm = 0x350
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$849, -56(%rbp)                 ## imm = 0x351
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$850, -56(%rbp)                 ## imm = 0x352
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$851, -56(%rbp)                 ## imm = 0x353
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$852, -56(%rbp)                 ## imm = 0x354
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$853, -56(%rbp)                 ## imm = 0x355
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$854, -56(%rbp)                 ## imm = 0x356
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$855, -56(%rbp)                 ## imm = 0x357
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$856, -56(%rbp)                 ## imm = 0x358
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$857, -56(%rbp)                 ## imm = 0x359
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$858, -56(%rbp)                 ## imm = 0x35A
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$859, -56(%rbp)                 ## imm = 0x35B
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$860, -56(%rbp)                 ## imm = 0x35C
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movl	$861, -56(%rbp)                 ## imm = 0x35D
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_wlc_lcnphy_write_table
	movq	%rbx, %rdi
	movl	$1188, %esi                     ## imm = 0x4A4
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$32768, %ecx                    ## imm = 0x8000
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$1188, %esi                     ## imm = 0x4A4
	movl	$16384, %edx                    ## imm = 0x4000
	movl	$16384, %ecx                    ## imm = 0x4000
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$1188, %esi                     ## imm = 0x4A4
	movl	$8192, %edx                     ## imm = 0x2000
	movl	$8192, %ecx                     ## imm = 0x2000
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$1200, %esi                     ## imm = 0x4B0
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$1083, %esi                     ## imm = 0x43B
	movl	$64, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$1193, %esi                     ## imm = 0x4A9
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$32768, %ecx                    ## imm = 0x8000
	callq	_mod_phy_reg
	addl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$1193, %esi                     ## imm = 0x4A9
	movl	$511, %edx                      ## imm = 0x1FF
	movl	%r14d, %ecx
	callq	_mod_phy_reg
	movq	%rbx, %rdi
	movl	$1699, %esi                     ## imm = 0x6A3
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_mod_phy_reg
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.wlc_lcnphy_set_tx_pwr_soft_ctrl.cck_offset
L___const.wlc_lcnphy_set_tx_pwr_soft_ctrl.cck_offset:
	.long	22                              ## 0x16
	.long	22                              ## 0x16
	.long	22                              ## 0x16
	.long	22                              ## 0x16

	.comm	_LCNPHY_TBL_ID_TXPWRCTL,4,2     ## @LCNPHY_TBL_ID_TXPWRCTL
	.comm	_LCNPHY_TX_PWR_CTRL_RATE_OFFSET,4,2 ## @LCNPHY_TX_PWR_CTRL_RATE_OFFSET
	.no_dead_strip	_wlc_lcnphy_set_tx_pwr_soft_ctrl
.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_tx_pwr_soft_ctrl
_wlc_lcnphy_set_tx_pwr_soft_ctrl:       ; @wlc_lcnphy_set_tx_pwr_soft_ctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	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, #-24]
Lloh3:
	adrp	x8, l___const.wlc_lcnphy_set_tx_pwr_soft_ctrl.cck_offset@PAGE
Lloh4:
	add	x8, x8, l___const.wlc_lcnphy_set_tx_pwr_soft_ctrl.cck_offset@PAGEOFF
Lloh5:
	ldr	q0, [x8]
	str	q0, [sp, #32]
	bl	_wlc_lcnphy_tssi_based_pwr_ctrl_enabled
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1188
	mov	w2, #16384
	mov	w3, #16384
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1188
	mov	w2, #16384
	mov	w3, #0
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1754
	mov	w2, #64
	bl	_or_phy_reg
Lloh6:
	adrp	x8, _LCNPHY_TBL_ID_TXPWRCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LCNPHY_TBL_ID_TXPWRCTL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x9, #32
	movk	x9, #4, lsl #32
	add	x10, sp, #32
	stp	x9, x10, [sp]
Lloh9:
	adrp	x9, _LCNPHY_TX_PWR_CTRL_RATE_OFFSET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LCNPHY_TX_PWR_CTRL_RATE_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	str	wzr, [sp, #28]
	mov	w8, #1
	str	w8, [sp, #4]
	add	x8, sp, #28
	str	x8, [sp, #8]
	mov	w8, #836
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #837
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #838
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #839
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #840
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #841
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #842
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #843
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #844
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #845
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #846
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #847
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #848
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #849
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #850
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #851
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #852
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #853
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #854
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #855
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #856
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #857
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #858
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #859
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #860
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	w8, #861
	str	w8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_wlc_lcnphy_write_table
	mov	x0, x19
	mov	w1, #1188
	mov	w2, #32768
	mov	w3, #32768
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1188
	mov	w2, #16384
	mov	w3, #16384
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1188
	mov	w2, #8192
	mov	w3, #8192
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1200
	mov	w2, #128
	mov	w3, #0
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1083
	mov	w2, #64
	mov	w3, #0
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1193
	mov	w2, #32768
	mov	w3, #32768
	bl	_mod_phy_reg
	lsl	w3, w20, #1
	mov	x0, x19
	mov	w1, #1193
	mov	w2, #511
	bl	_mod_phy_reg
	mov	x0, x19
	mov	w1, #1699
	mov	w2, #16
	mov	w3, #0
	bl	_mod_phy_reg
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpAddLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.wlc_lcnphy_set_tx_pwr_soft_ctrl.cck_offset
l___const.wlc_lcnphy_set_tx_pwr_soft_ctrl.cck_offset:
	.long	22                              ; 0x16
	.long	22                              ; 0x16
	.long	22                              ; 0x16
	.long	22                              ; 0x16

	.comm	_LCNPHY_TBL_ID_TXPWRCTL,4,2     ; @LCNPHY_TBL_ID_TXPWRCTL
	.comm	_LCNPHY_TX_PWR_CTRL_RATE_OFFSET,4,2 ; @LCNPHY_TX_PWR_CTRL_RATE_OFFSET
	.no_dead_strip	_wlc_lcnphy_set_tx_pwr_soft_ctrl
.subsections_via_symbols
