	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_htc_rx_packet
_ath6kl_htc_rx_packet:                  ## @ath6kl_htc_rx_packet
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	(%rdi), %r12
	movl	%edx, %esi
	callq	_CALC_TXRX_PADDED_LEN
	movl	%eax, %ebx
	movl	12(%r14), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_ath6kl_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	_ATH6KL_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %ecx
	movq	(%r12), %rax
	movl	(%rax), %r9d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	callq	_ath6kl_dbg
	movq	(%r12), %rdi
	movl	(%rdi), %esi
	movl	4(%r14), %edx
	movq	_HIF_RD_SYNC_BLOCK_FIX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%ebx, %ecx
	callq	_hif_read_write_sync
	movl	%eax, (%r14)
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not enough receive space for packet - padlen %d recvlen %d bufferlen %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATH6KL_DBG_HTC,4,2             ## @ATH6KL_DBG_HTC
L_.str.1:                               ## @.str.1
	.asciz	"htc rx 0x%p hdr 0x%x len %d mbox 0x%x\n"

	.comm	_HIF_RD_SYNC_BLOCK_FIX,4,2      ## @HIF_RD_SYNC_BLOCK_FIX
	.no_dead_strip	_ath6kl_htc_rx_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath6kl_htc_rx_packet
_ath6kl_htc_rx_packet:                  ; @ath6kl_htc_rx_packet
	.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	x21, x2
	mov	x19, x1
	ldr	x22, [x0]
	mov	x1, x2
	bl	_CALC_TXRX_PADDED_LEN
	mov	x20, x0
	ldr	w3, [x19, #12]
	cmp	w0, w3
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_ath6kl_err
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _ATH6KL_DBG_HTC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATH6KL_DBG_HTC@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w3, [x19, #8]
	ldr	x8, [x22]
	ldr	w5, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x4, x20
	bl	_ath6kl_dbg
	ldr	x0, [x22]
	ldr	w1, [x0]
	ldr	w2, [x19, #4]
Lloh10:
	adrp	x8, _HIF_RD_SYNC_BLOCK_FIX@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HIF_RD_SYNC_BLOCK_FIX@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	mov	x3, x20
	bl	_hif_read_write_sync
	str	w0, [x19]
LBB0_3:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not enough receive space for packet - padlen %d recvlen %d bufferlen %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATH6KL_DBG_HTC,4,2             ; @ATH6KL_DBG_HTC
l_.str.1:                               ; @.str.1
	.asciz	"htc rx 0x%p hdr 0x%x len %d mbox 0x%x\n"

	.comm	_HIF_RD_SYNC_BLOCK_FIX,4,2      ; @HIF_RD_SYNC_BLOCK_FIX
	.no_dead_strip	_ath6kl_htc_rx_packet
.subsections_via_symbols
