	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_htc_mbox_start
_ath6kl_htc_mbox_start:                 ## @ath6kl_htc_mbox_start
	.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
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	(%r14), %rdi
	callq	_ath6kl_hif_disable_intrs
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r14)
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_htc_get_control_buf
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_htc_add_rxbuf
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_4:
	movl	8(%r14), %edx
	movl	16(%r14), %edi
	leaq	12(%r14), %rsi
	callq	_ath6kl_credit_init
	movq	%r14, %rdi
	callq	_dump_cred_dist_stats
	movq	%r14, %rdi
	callq	_htc_setup_tx_complete
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	(%r14), %rdi
	callq	_ath6kl_hif_unmask_intrs
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_ath6kl_htc_mbox_stop
	jmp	LBB0_8
LBB0_6:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ath6kl_htc_mbox_start
.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_start
_ath6kl_htc_mbox_start:                 ; @ath6kl_htc_mbox_start
	.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
	ldr	x0, [x0]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x0, [x19]
	bl	_ath6kl_hif_disable_intrs
	stp	xzr, xzr, [x19, #24]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_htc_get_control_buf
	cbz	x0, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x1, x0
	mov	x0, x19
	bl	_htc_add_rxbuf
	cbz	w0, LBB0_1
; %bb.3:
	mov	x20, x0
	b	LBB0_7
LBB0_4:
	ldr	w0, [x19, #16]
	add	x1, x19, #12
	ldr	w2, [x19, #8]
	bl	_ath6kl_credit_init
	mov	x0, x19
	bl	_dump_cred_dist_stats
	mov	x0, x19
	bl	_htc_setup_tx_complete
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x0, [x19]
	bl	_ath6kl_hif_unmask_intrs
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_ath6kl_htc_mbox_stop
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ath6kl_htc_mbox_start
.subsections_via_symbols
