	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_carl9170_set_qos               ## -- Begin function carl9170_set_qos
	.p2align	4, 0x90
_carl9170_set_qos:                      ## @carl9170_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_carl9170_regwrite_begin
	movq	_AR9170_MAC_REG_AC0_CW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	4(%rax), %esi
	shll	$16, %esi
	orl	(%rax), %esi
	callq	_carl9170_regwrite
	movq	_AR9170_MAC_REG_AC1_CW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	20(%rax), %esi
	shll	$16, %esi
	orl	16(%rax), %esi
	callq	_carl9170_regwrite
	movq	_AR9170_MAC_REG_AC2_CW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	36(%rax), %esi
	shll	$16, %esi
	orl	32(%rax), %esi
	callq	_carl9170_regwrite
	movq	_AR9170_MAC_REG_AC3_CW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	52(%rax), %esi
	shll	$16, %esi
	orl	48(%rax), %esi
	callq	_carl9170_regwrite
	movq	_AR9170_MAC_REG_AC4_CW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	68(%rax), %esi
	shll	$16, %esi
	orl	64(%rax), %esi
	callq	_carl9170_regwrite
	movq	_AR9170_MAC_REG_AC2_AC1_AC0_AIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	8(%rax), %ecx
	movl	24(%rax), %edx
	leal	(%rcx,%rcx,8), %ecx
	addl	$10, %ecx
	leal	(%rdx,%rdx,8), %edx
	shll	$12, %edx
	addl	$40960, %edx                    ## imm = 0xA000
	orl	%ecx, %edx
	movl	40(%rax), %eax
	leal	(%rax,%rax,8), %esi
	shll	$24, %esi
	addl	$167772160, %esi                ## imm = 0xA000000
	orl	%edx, %esi
	callq	_carl9170_regwrite
	movq	_AR9170_MAC_REG_AC4_AC3_AC2_AIFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	40(%rax), %ecx
	movl	56(%rax), %edx
	leal	(%rcx,%rcx,8), %ecx
	addl	$10, %ecx
	sarl	$8, %ecx
	leal	(%rdx,%rdx,8), %edx
	shll	$4, %edx
	addl	$160, %edx
	orl	%ecx, %edx
	movl	72(%rax), %eax
	leal	(%rax,%rax,8), %esi
	shll	$16, %esi
	addl	$655360, %esi                   ## imm = 0xA0000
	orl	%edx, %esi
	callq	_carl9170_regwrite
	movq	_AR9170_MAC_REG_AC1_AC0_TXOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	28(%rax), %esi
	shll	$16, %esi
	orl	12(%rax), %esi
	callq	_carl9170_regwrite
	movq	_AR9170_MAC_REG_AC3_AC2_TXOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	60(%rax), %ecx
	movl	76(%rax), %esi
	shll	$16, %ecx
	orl	44(%rax), %ecx
	shll	$24, %esi
	orl	%ecx, %esi
	callq	_carl9170_regwrite
	xorl	%eax, %eax
	callq	_carl9170_regwrite_finish
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_carl9170_regwrite_result       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR9170_MAC_REG_AC0_CW,4,2      ## @AR9170_MAC_REG_AC0_CW
	.comm	_AR9170_MAC_REG_AC1_CW,4,2      ## @AR9170_MAC_REG_AC1_CW
	.comm	_AR9170_MAC_REG_AC2_CW,4,2      ## @AR9170_MAC_REG_AC2_CW
	.comm	_AR9170_MAC_REG_AC3_CW,4,2      ## @AR9170_MAC_REG_AC3_CW
	.comm	_AR9170_MAC_REG_AC4_CW,4,2      ## @AR9170_MAC_REG_AC4_CW
	.comm	_AR9170_MAC_REG_AC2_AC1_AC0_AIFS,4,2 ## @AR9170_MAC_REG_AC2_AC1_AC0_AIFS
	.comm	_AR9170_MAC_REG_AC4_AC3_AC2_AIFS,4,2 ## @AR9170_MAC_REG_AC4_AC3_AC2_AIFS
	.comm	_AR9170_MAC_REG_AC1_AC0_TXOP,4,2 ## @AR9170_MAC_REG_AC1_AC0_TXOP
	.comm	_AR9170_MAC_REG_AC3_AC2_TXOP,4,2 ## @AR9170_MAC_REG_AC3_AC2_TXOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_carl9170_set_qos               ; -- Begin function carl9170_set_qos
	.p2align	2
_carl9170_set_qos:                      ; @carl9170_set_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
	mov	x19, x0
	bl	_carl9170_regwrite_begin
Lloh0:
	adrp	x8, _AR9170_MAC_REG_AC0_CW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR9170_MAC_REG_AC0_CW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldp	w9, w8, [x8]
	orr	w1, w9, w8, lsl #16
	bl	_carl9170_regwrite
Lloh3:
	adrp	x8, _AR9170_MAC_REG_AC1_CW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR9170_MAC_REG_AC1_CW@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldp	w9, w8, [x8, #16]
	orr	w1, w9, w8, lsl #16
	bl	_carl9170_regwrite
Lloh6:
	adrp	x8, _AR9170_MAC_REG_AC2_CW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR9170_MAC_REG_AC2_CW@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldp	w9, w8, [x8, #32]
	orr	w1, w9, w8, lsl #16
	bl	_carl9170_regwrite
Lloh9:
	adrp	x8, _AR9170_MAC_REG_AC3_CW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AR9170_MAC_REG_AC3_CW@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldp	w9, w8, [x8, #48]
	orr	w1, w9, w8, lsl #16
	bl	_carl9170_regwrite
Lloh12:
	adrp	x8, _AR9170_MAC_REG_AC4_CW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR9170_MAC_REG_AC4_CW@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldp	w9, w8, [x8, #64]
	orr	w1, w9, w8, lsl #16
	bl	_carl9170_regwrite
Lloh15:
	adrp	x8, _AR9170_MAC_REG_AC2_AC1_AC0_AIFS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AR9170_MAC_REG_AC2_AC1_AC0_AIFS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w9, [x8, #8]
	add	w9, w9, w9, lsl #3
	add	w9, w9, #10
	ldr	w10, [x8, #24]
	mov	w11, #36864
	mul	w10, w10, w11
	add	w10, w10, #10, lsl #12          ; =40960
	orr	w9, w10, w9
	ldr	w8, [x8, #40]
	mov	w10, #150994944
	mov	w11, #167772160
	madd	w8, w8, w10, w11
	orr	w1, w9, w8
	bl	_carl9170_regwrite
Lloh18:
	adrp	x8, _AR9170_MAC_REG_AC4_AC3_AC2_AIFS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR9170_MAC_REG_AC4_AC3_AC2_AIFS@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w9, [x8, #40]
	add	w9, w9, w9, lsl #3
	add	w9, w9, #10
	ldr	w10, [x8, #56]
	mov	w11, #144
	mul	w10, w10, w11
	add	w10, w10, #160
	orr	w9, w10, w9, asr #8
	ldr	w8, [x8, #72]
	mov	w10, #589824
	mul	w8, w8, w10
	add	w8, w8, #160, lsl #12           ; =655360
	orr	w1, w9, w8
	bl	_carl9170_regwrite
Lloh21:
	adrp	x8, _AR9170_MAC_REG_AC1_AC0_TXOP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AR9170_MAC_REG_AC1_AC0_TXOP@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w9, [x8, #12]
	ldr	w8, [x8, #28]
	orr	w1, w9, w8, lsl #16
	bl	_carl9170_regwrite
Lloh24:
	adrp	x8, _AR9170_MAC_REG_AC3_AC2_TXOP@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AR9170_MAC_REG_AC3_AC2_TXOP@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	x8, [x19]
	ldr	w9, [x8, #44]
	ldr	w10, [x8, #60]
	orr	w9, w9, w10, lsl #16
	ldr	w8, [x8, #76]
	orr	w1, w9, w8, lsl #24
	bl	_carl9170_regwrite
	bl	_carl9170_regwrite_finish
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_carl9170_regwrite_result
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AR9170_MAC_REG_AC0_CW,4,2      ; @AR9170_MAC_REG_AC0_CW
	.comm	_AR9170_MAC_REG_AC1_CW,4,2      ; @AR9170_MAC_REG_AC1_CW
	.comm	_AR9170_MAC_REG_AC2_CW,4,2      ; @AR9170_MAC_REG_AC2_CW
	.comm	_AR9170_MAC_REG_AC3_CW,4,2      ; @AR9170_MAC_REG_AC3_CW
	.comm	_AR9170_MAC_REG_AC4_CW,4,2      ; @AR9170_MAC_REG_AC4_CW
	.comm	_AR9170_MAC_REG_AC2_AC1_AC0_AIFS,4,2 ; @AR9170_MAC_REG_AC2_AC1_AC0_AIFS
	.comm	_AR9170_MAC_REG_AC4_AC3_AC2_AIFS,4,2 ; @AR9170_MAC_REG_AC4_AC3_AC2_AIFS
	.comm	_AR9170_MAC_REG_AC1_AC0_TXOP,4,2 ; @AR9170_MAC_REG_AC1_AC0_TXOP
	.comm	_AR9170_MAC_REG_AC3_AC2_TXOP,4,2 ; @AR9170_MAC_REG_AC3_AC2_TXOP
.subsections_via_symbols
