	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_update_qos
_iwlagn_update_qos:                     ## @iwlagn_update_qos
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 32(%rsi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, (%rsi)
	movq	8(%rsi), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movq	_QOS_PARAM_FLG_UPDATE_EDCA_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_6
LBB0_5:
	movq	_QOS_PARAM_FLG_TGN_MSK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_INFO
	movl	16(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$4, %ecx
	movq	%rbx, %r8
	callq	_iwl_dvm_send_cmd_pdu
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_IWL_DEBUG_QUIET_RFKILL         ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	xorl	%ecx, %ecx
	cmpq	$0, 24(%rbx)
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_QOS_PARAM_FLG_UPDATE_EDCA_MSK,4,2 ## @QOS_PARAM_FLG_UPDATE_EDCA_MSK
	.comm	_QOS_PARAM_FLG_TGN_MSK,4,2      ## @QOS_PARAM_FLG_TGN_MSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send QoS cmd with Qos active=%d FLAGS=0x%X\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to update QoS\n"

	.no_dead_strip	_iwlagn_update_qos
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_update_qos
_iwlagn_update_qos:                     ; @iwlagn_update_qos
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x1, #32]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	str	wzr, [x1]
	ldr	x2, [x1, #8]
	cbz	x2, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _QOS_PARAM_FLG_UPDATE_EDCA_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QOS_PARAM_FLG_UPDATE_EDCA_MSK@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	str	w3, [x20]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _QOS_PARAM_FLG_TGN_MSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QOS_PARAM_FLG_TGN_MSK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w3, w3, w8
	str	w3, [x20]
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_INFO
	ldr	w1, [x20, #16]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #4
	mov	x4, x20
	bl	_iwl_dvm_send_cmd_pdu
	cbz	w0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_IWL_DEBUG_QUIET_RFKILL
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w3, #0
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_3
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QOS_PARAM_FLG_UPDATE_EDCA_MSK,4,2 ; @QOS_PARAM_FLG_UPDATE_EDCA_MSK
	.comm	_QOS_PARAM_FLG_TGN_MSK,4,2      ; @QOS_PARAM_FLG_TGN_MSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send QoS cmd with Qos active=%d FLAGS=0x%X\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to update QoS\n"

	.no_dead_strip	_iwlagn_update_qos
.subsections_via_symbols
