	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_htc_start               ## -- Begin function ath10k_htc_start
	.p2align	4, 0x90
_ath10k_htc_start:                      ## @ath10k_htc_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_ath10k_htc_build_tx_ctrl_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	movl	$12, %esi
	callq	_skb_put
	movq	(%r12), %rdi
	movl	8(%r12), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	(%r12), %rbx
	movq	_ATH10K_HTC_MSG_SETUP_COMPLETE_EX_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le16
	movl	%eax, 8(%rbx)
	movq	(%r14), %rax
	movq	_ATH10K_BUS_SDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_ATH10K_HTC_SETUP_COMPLETE_FLAGS_RX_BNDL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	movl	%eax, 4(%rbx)
	movl	(%r15), %eax
	movl	%eax, (%rbx)
LBB0_4:
	movq	_ATH10K_DBG_HTC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_ath10k_dbg
	movq	_ATH10K_HTC_EP_0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_ath10k_htc_send
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree_skb
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	movq	%r14, %rdi
	callq	_ath10k_htc_pktlog_svc_supported
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	callq	_ath10k_htc_pktlog_connect
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_ath10k_err
	movl	%r15d, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ATH10K_HTC_MSG_SETUP_COMPLETE_EX_ID,4,2 ## @ATH10K_HTC_MSG_SETUP_COMPLETE_EX_ID
	.comm	_ATH10K_BUS_SDIO,8,3            ## @ATH10K_BUS_SDIO
	.comm	_ATH10K_HTC_SETUP_COMPLETE_FLAGS_RX_BNDL_EN,4,2 ## @ATH10K_HTC_SETUP_COMPLETE_FLAGS_RX_BNDL_EN
	.comm	_ATH10K_DBG_HTC,4,2             ## @ATH10K_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HTC is using TX credit flow control\n"

	.comm	_ATH10K_HTC_EP_0,4,2            ## @ATH10K_HTC_EP_0
L_.str.1:                               ## @.str.1
	.asciz	"failed to connect to pktlog: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_htc_start               ; -- Begin function ath10k_htc_start
	.p2align	2
_ath10k_htc_start:                      ; @ath10k_htc_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	x21, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_ath10k_htc_build_tx_ctrl_skb
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	mov	w1, #12
	bl	_skb_put
	ldr	x0, [x20]
	ldr	w2, [x20, #8]
	mov	w1, #0
	bl	_memset
	ldr	x22, [x20]
Lloh0:
	adrp	x8, _ATH10K_HTC_MSG_SETUP_COMPLETE_EX_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_HTC_MSG_SETUP_COMPLETE_EX_ID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	___cpu_to_le16
	str	w0, [x22, #8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ATH10K_BUS_SDIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ATH10K_BUS_SDIO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _ATH10K_HTC_SETUP_COMPLETE_FLAGS_RX_BNDL_EN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ATH10K_HTC_SETUP_COMPLETE_FLAGS_RX_BNDL_EN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	___cpu_to_le32
	ldr	w8, [x21]
	stp	w8, w0, [x22]
LBB0_3:
Lloh9:
	adrp	x8, _ATH10K_DBG_HTC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ATH10K_DBG_HTC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_dbg
Lloh14:
	adrp	x8, _ATH10K_HTC_EP_0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATH10K_HTC_EP_0@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x20
	bl	_ath10k_htc_send
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
	mov	x0, x20
	bl	_kfree_skb
	b	LBB0_10
LBB0_5:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_6:
	mov	x0, x19
	bl	_ath10k_htc_pktlog_svc_supported
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_ath10k_htc_pktlog_connect
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.8:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_err
	b	LBB0_10
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ATH10K_HTC_MSG_SETUP_COMPLETE_EX_ID,4,2 ; @ATH10K_HTC_MSG_SETUP_COMPLETE_EX_ID
	.comm	_ATH10K_BUS_SDIO,8,3            ; @ATH10K_BUS_SDIO
	.comm	_ATH10K_HTC_SETUP_COMPLETE_FLAGS_RX_BNDL_EN,4,2 ; @ATH10K_HTC_SETUP_COMPLETE_FLAGS_RX_BNDL_EN
	.comm	_ATH10K_DBG_HTC,4,2             ; @ATH10K_DBG_HTC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HTC is using TX credit flow control\n"

	.comm	_ATH10K_HTC_EP_0,4,2            ; @ATH10K_HTC_EP_0
l_.str.1:                               ; @.str.1
	.asciz	"failed to connect to pktlog: %d\n"

.subsections_via_symbols
