	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htc_ctrl_rx
_htc_ctrl_rx:                           ## @htc_ctrl_rx
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %rax
	movq	_ENDPOINT_0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	24(%rsi), %eax
	movq	_ECANCELED@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_2
## %bb.6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_reclaim_rx_ctrl_buf            ## TAILCALL
LBB0_5:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
LBB0_2:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_4
## %bb.3:
	movq	_HTC_HDR_LENGTH@GOTPCREL(%rip), %r15
	addq	(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_ath6kl_err
	movq	_ATH6KL_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%rbx), %rcx
	movq	(%r15), %r8
	subq	%r8, %rcx
	addq	8(%rbx), %r8
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	callq	_ath6kl_dbg_dump
LBB0_4:
	movq	(%r14), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_htc_reclaim_rxbuf              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENDPOINT_0,8,3                 ## @ENDPOINT_0
	.comm	_ECANCELED,4,2                  ## @ECANCELED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"htc_ctrl_rx, got message with len:%zu\n"

	.comm	_HTC_HDR_LENGTH,8,3             ## @HTC_HDR_LENGTH
	.comm	_ATH6KL_DBG_HTC,4,2             ## @ATH6KL_DBG_HTC
L_.str.1:                               ## @.str.1
	.asciz	"htc rx unexpected endpoint 0 message"

L_.str.2:                               ## @.str.2
	.space	1

	.no_dead_strip	_htc_ctrl_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htc_ctrl_rx
_htc_ctrl_rx:                           ; @htc_ctrl_rx
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _ENDPOINT_0@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENDPOINT_0@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1, #24]
Lloh3:
	adrp	x9, _ECANCELED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ECANCELED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmn	w8, w9
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	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
	b	_reclaim_rx_ctrl_buf
LBB0_3:
	mov	w0, #1
	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
	b	_WARN_ON
LBB0_4:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:
Lloh6:
	adrp	x21, _HTC_HDR_LENGTH@GOTPAGE
Lloh7:
	ldr	x21, [x21, _HTC_HDR_LENGTH@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ath6kl_err
Lloh10:
	adrp	x8, _ATH6KL_DBG_HTC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATH6KL_DBG_HTC@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x8, [x21]
	ldp	x10, x9, [x19, #8]
	sub	x3, x9, x8
	add	x4, x10, x8
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_ath6kl_dbg_dump
LBB0_6:
	ldr	x2, [x20]
	mov	x0, x20
	mov	x1, x19
	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
	b	_htc_reclaim_rxbuf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ENDPOINT_0,8,3                 ; @ENDPOINT_0
	.comm	_ECANCELED,4,2                  ; @ECANCELED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"htc_ctrl_rx, got message with len:%zu\n"

	.comm	_HTC_HDR_LENGTH,8,3             ; @HTC_HDR_LENGTH
	.comm	_ATH6KL_DBG_HTC,4,2             ; @ATH6KL_DBG_HTC
l_.str.1:                               ; @.str.1
	.asciz	"htc rx unexpected endpoint 0 message"

l_.str.2:                               ; @.str.2
	.space	1

	.no_dead_strip	_htc_ctrl_rx
.subsections_via_symbols
