	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath6kl_htc_pipe_start
_ath6kl_htc_pipe_start:                 ## @ath6kl_htc_pipe_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_htc_config_target_hif_pipe
	movq	%r14, %rdi
	callq	_htc_alloc_txctrl_packet
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	(%rax), %rdi
	movl	$4, %esi
	callq	_skb_put
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_HTC_MSG_SETUP_COMPLETE_EX_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, (%r15)
	movq	_ATH6KL_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_ath6kl_dbg
	movq	_ENDPOINT_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HTC_SERVICE_TX_PACKET_TAG@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_set_htc_pkt_info
	movq	_HTC_OP_STATE_SETUP_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath6kl_htc_pipe_tx             ## TAILCALL
LBB0_1:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HTC_MSG_SETUP_COMPLETE_EX_ID,4,2 ## @HTC_MSG_SETUP_COMPLETE_EX_ID
	.comm	_ATH6KL_DBG_HTC,4,2             ## @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HTC using TX credit flow control\n"

	.comm	_ENDPOINT_0,4,2                 ## @ENDPOINT_0
	.comm	_HTC_SERVICE_TX_PACKET_TAG,4,2  ## @HTC_SERVICE_TX_PACKET_TAG
	.comm	_HTC_OP_STATE_SETUP_COMPLETE,4,2 ## @HTC_OP_STATE_SETUP_COMPLETE
	.no_dead_strip	_ath6kl_htc_pipe_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_pipe_start
_ath6kl_htc_pipe_start:                 ; @ath6kl_htc_pipe_start
	.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	x19, x0
	bl	_htc_config_target_hif_pipe
	mov	x0, x19
	bl	_htc_alloc_txctrl_packet
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x0, [x0]
	mov	w1, #4
	bl	_skb_put
	mov	x21, x0
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x8, _HTC_MSG_SETUP_COMPLETE_EX_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTC_MSG_SETUP_COMPLETE_EX_ID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [x21]
Lloh3:
	adrp	x8, _ATH6KL_DBG_HTC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ATH6KL_DBG_HTC@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath6kl_dbg
Lloh8:
	adrp	x8, _ENDPOINT_0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENDPOINT_0@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
Lloh11:
	adrp	x8, _HTC_SERVICE_TX_PACKET_TAG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HTC_SERVICE_TX_PACKET_TAG@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	x2, x21
	mov	w3, #4
	bl	_set_htc_pkt_info
Lloh14:
	adrp	x8, _HTC_OP_STATE_SETUP_COMPLETE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HTC_OP_STATE_SETUP_COMPLETE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	mov	x1, x20
	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	_ath6kl_htc_pipe_tx
LBB0_2:
	mov	w0, #1
	bl	_WARN_ON_ONCE
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HTC_MSG_SETUP_COMPLETE_EX_ID,4,2 ; @HTC_MSG_SETUP_COMPLETE_EX_ID
	.comm	_ATH6KL_DBG_HTC,4,2             ; @ATH6KL_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HTC using TX credit flow control\n"

	.comm	_ENDPOINT_0,4,2                 ; @ENDPOINT_0
	.comm	_HTC_SERVICE_TX_PACKET_TAG,4,2  ; @HTC_SERVICE_TX_PACKET_TAG
	.comm	_HTC_OP_STATE_SETUP_COMPLETE,4,2 ; @HTC_OP_STATE_SETUP_COMPLETE
	.no_dead_strip	_ath6kl_htc_pipe_start
.subsections_via_symbols
