	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_send_update_phy_params ## -- Begin function qtnf_cmd_send_update_phy_params
	.p2align	4, 0x90
_qtnf_cmd_send_update_phy_params:       ## @qtnf_cmd_send_update_phy_params
	.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	%esi, %r14d
	movq	%rdi, %r12
	callq	_priv_to_wiphy
	movq	%rax, %r15
	movl	4(%r12), %edi
	movq	_QLINK_CMD_PHY_PARAMS_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$4, %ecx
	callq	_qtnf_cmd_alloc_new_cmdskb
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movl	(%r12), %edi
	callq	_qtnf_bus_lock
	movq	_WIPHY_PARAM_FRAG_THRESHOLD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_QTN_TLV_ID_FRAG_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r15), %edx
	movq	%r13, %rdi
	callq	_qtnf_cmd_skb_put_tlv_u32
LBB0_5:
	movq	_WIPHY_PARAM_RTS_THRESHOLD@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_QTN_TLV_ID_RTS_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r15), %edx
	movq	%r13, %rdi
	callq	_qtnf_cmd_skb_put_tlv_u32
LBB0_7:
	movq	_WIPHY_PARAM_COVERAGE_CLASS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.8:
	movq	_QTN_TLV_ID_COVERAGE_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	movq	%r13, %rdi
	callq	_qtnf_cmd_skb_put_tlv_u8
LBB0_9:
	movq	_WIPHY_PARAM_RETRY_LONG@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.10:
	movq	_QTN_TLV_ID_LRETRY_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	movq	%r13, %rdi
	callq	_qtnf_cmd_skb_put_tlv_u8
LBB0_11:
	movq	_WIPHY_PARAM_RETRY_SHORT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_QTN_TLV_ID_SRETRY_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r13, %rdi
	callq	_qtnf_cmd_skb_put_tlv_u8
LBB0_13:
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_qtnf_cmd_send
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_qtnf_bus_unlock
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLINK_CMD_PHY_PARAMS_SET,4,2   ## @QLINK_CMD_PHY_PARAMS_SET
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WIPHY_PARAM_FRAG_THRESHOLD,4,2 ## @WIPHY_PARAM_FRAG_THRESHOLD
	.comm	_QTN_TLV_ID_FRAG_THRESH,4,2     ## @QTN_TLV_ID_FRAG_THRESH
	.comm	_WIPHY_PARAM_RTS_THRESHOLD,4,2  ## @WIPHY_PARAM_RTS_THRESHOLD
	.comm	_QTN_TLV_ID_RTS_THRESH,4,2      ## @QTN_TLV_ID_RTS_THRESH
	.comm	_WIPHY_PARAM_COVERAGE_CLASS,4,2 ## @WIPHY_PARAM_COVERAGE_CLASS
	.comm	_QTN_TLV_ID_COVERAGE_CLASS,4,2  ## @QTN_TLV_ID_COVERAGE_CLASS
	.comm	_WIPHY_PARAM_RETRY_LONG,4,2     ## @WIPHY_PARAM_RETRY_LONG
	.comm	_QTN_TLV_ID_LRETRY_LIMIT,4,2    ## @QTN_TLV_ID_LRETRY_LIMIT
	.comm	_WIPHY_PARAM_RETRY_SHORT,4,2    ## @WIPHY_PARAM_RETRY_SHORT
	.comm	_QTN_TLV_ID_SRETRY_LIMIT,4,2    ## @QTN_TLV_ID_SRETRY_LIMIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qtnf_cmd_send_update_phy_params ; -- Begin function qtnf_cmd_send_update_phy_params
	.p2align	2
_qtnf_cmd_send_update_phy_params:       ; @qtnf_cmd_send_update_phy_params
	.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	x20, x1
	mov	x19, x0
	bl	_priv_to_wiphy
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x8, _QLINK_CMD_PHY_PARAMS_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QLINK_CMD_PHY_PARAMS_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #4
	bl	_qtnf_cmd_alloc_new_cmdskb
	cbz	x0, LBB0_12
; %bb.1:
	mov	x22, x0
	ldr	w0, [x19]
	bl	_qtnf_bus_lock
Lloh3:
	adrp	x8, _WIPHY_PARAM_FRAG_THRESHOLD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WIPHY_PARAM_FRAG_THRESHOLD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _QTN_TLV_ID_FRAG_THRESH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QTN_TLV_ID_FRAG_THRESH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x21, #16]
	mov	x0, x22
	bl	_qtnf_cmd_skb_put_tlv_u32
LBB0_3:
Lloh9:
	adrp	x8, _WIPHY_PARAM_RTS_THRESHOLD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WIPHY_PARAM_RTS_THRESHOLD@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _QTN_TLV_ID_RTS_THRESH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _QTN_TLV_ID_RTS_THRESH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x21, #12]
	mov	x0, x22
	bl	_qtnf_cmd_skb_put_tlv_u32
LBB0_5:
Lloh15:
	adrp	x8, _WIPHY_PARAM_COVERAGE_CLASS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WIPHY_PARAM_COVERAGE_CLASS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
Lloh18:
	adrp	x8, _QTN_TLV_ID_COVERAGE_CLASS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QTN_TLV_ID_COVERAGE_CLASS@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w2, [x21, #8]
	mov	x0, x22
	bl	_qtnf_cmd_skb_put_tlv_u8
LBB0_7:
Lloh21:
	adrp	x8, _WIPHY_PARAM_RETRY_LONG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _WIPHY_PARAM_RETRY_LONG@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
Lloh24:
	adrp	x8, _QTN_TLV_ID_LRETRY_LIMIT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _QTN_TLV_ID_LRETRY_LIMIT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	w2, [x21, #4]
	mov	x0, x22
	bl	_qtnf_cmd_skb_put_tlv_u8
LBB0_9:
Lloh27:
	adrp	x8, _WIPHY_PARAM_RETRY_SHORT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _WIPHY_PARAM_RETRY_SHORT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_11
; %bb.10:
Lloh30:
	adrp	x8, _QTN_TLV_ID_SRETRY_LIMIT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _QTN_TLV_ID_SRETRY_LIMIT@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x22
	bl	_qtnf_cmd_skb_put_tlv_u8
LBB0_11:
	ldr	w0, [x19]
	mov	x1, x22
	bl	_qtnf_cmd_send
	mov	x20, x0
	ldr	w0, [x19]
	bl	_qtnf_bus_unlock
	mov	x0, x20
	b	LBB0_13
LBB0_12:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_QLINK_CMD_PHY_PARAMS_SET,4,2   ; @QLINK_CMD_PHY_PARAMS_SET
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WIPHY_PARAM_FRAG_THRESHOLD,4,2 ; @WIPHY_PARAM_FRAG_THRESHOLD
	.comm	_QTN_TLV_ID_FRAG_THRESH,4,2     ; @QTN_TLV_ID_FRAG_THRESH
	.comm	_WIPHY_PARAM_RTS_THRESHOLD,4,2  ; @WIPHY_PARAM_RTS_THRESHOLD
	.comm	_QTN_TLV_ID_RTS_THRESH,4,2      ; @QTN_TLV_ID_RTS_THRESH
	.comm	_WIPHY_PARAM_COVERAGE_CLASS,4,2 ; @WIPHY_PARAM_COVERAGE_CLASS
	.comm	_QTN_TLV_ID_COVERAGE_CLASS,4,2  ; @QTN_TLV_ID_COVERAGE_CLASS
	.comm	_WIPHY_PARAM_RETRY_LONG,4,2     ; @WIPHY_PARAM_RETRY_LONG
	.comm	_QTN_TLV_ID_LRETRY_LIMIT,4,2    ; @QTN_TLV_ID_LRETRY_LIMIT
	.comm	_WIPHY_PARAM_RETRY_SHORT,4,2    ; @WIPHY_PARAM_RETRY_SHORT
	.comm	_QTN_TLV_ID_SRETRY_LIMIT,4,2    ; @QTN_TLV_ID_SRETRY_LIMIT
.subsections_via_symbols
