	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_htc_mbox_credit_setup
_ath6kl_htc_mbox_credit_setup:          ## @ath6kl_htc_mbox_credit_setup
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_WMI_CONTROL_SVC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_WMI_DATA_VO_SVC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_WMI_DATA_VI_SVC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_WMI_DATA_BE_SVC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_WMI_DATA_BK_SVC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$5, %ecx
	callq	_ath6kl_htc_set_credit_dist
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_CONTROL_SVC,4,2            ## @WMI_CONTROL_SVC
	.comm	_WMI_DATA_VO_SVC,4,2            ## @WMI_DATA_VO_SVC
	.comm	_WMI_DATA_VI_SVC,4,2            ## @WMI_DATA_VI_SVC
	.comm	_WMI_DATA_BE_SVC,4,2            ## @WMI_DATA_BE_SVC
	.comm	_WMI_DATA_BK_SVC,4,2            ## @WMI_DATA_BK_SVC
	.no_dead_strip	_ath6kl_htc_mbox_credit_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_htc_mbox_credit_setup
_ath6kl_htc_mbox_credit_setup:          ; @ath6kl_htc_mbox_credit_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x0, x1
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh3:
	adrp	x8, _WMI_CONTROL_SVC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI_CONTROL_SVC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _WMI_DATA_VO_SVC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WMI_DATA_VO_SVC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #4]
Lloh9:
	adrp	x8, _WMI_DATA_VI_SVC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WMI_DATA_VI_SVC@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _WMI_DATA_BE_SVC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WMI_DATA_BE_SVC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #12]
Lloh15:
	adrp	x8, _WMI_DATA_BK_SVC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WMI_DATA_BK_SVC@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	add	x2, sp, #4
	mov	x0, x20
	mov	x1, x19
	mov	w3, #5
	bl	_ath6kl_htc_set_credit_dist
	ldr	x8, [sp, #24]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	bl	___stack_chk_fail
	.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	_WMI_CONTROL_SVC,4,2            ; @WMI_CONTROL_SVC
	.comm	_WMI_DATA_VO_SVC,4,2            ; @WMI_DATA_VO_SVC
	.comm	_WMI_DATA_VI_SVC,4,2            ; @WMI_DATA_VI_SVC
	.comm	_WMI_DATA_BE_SVC,4,2            ; @WMI_DATA_BE_SVC
	.comm	_WMI_DATA_BK_SVC,4,2            ; @WMI_DATA_BK_SVC
	.no_dead_strip	_ath6kl_htc_mbox_credit_setup
.subsections_via_symbols
