	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_htt_setup               ## -- Begin function ath10k_htt_setup
	.p2align	4, 0x90
_ath10k_htt_setup:                      ## @ath10k_htt_setup
	.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, %r12
	movq	16(%rdi), %r14
	leaq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_init_completion
	movq	%r12, %rdi
	callq	_ath10k_htt_h2t_ver_req_msg
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	_HTT_TARGET_VERSION_TIMEOUT_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	callq	_ath10k_htt_verify_version
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
LBB0_11:
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	jmp	LBB0_12
LBB0_2:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_5:
	movq	%r12, %rdi
	callq	_ath10k_htt_send_frag_desc_bank_cfg
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_6
LBB0_12:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r12, %rdi
	callq	_ath10k_htt_send_rx_ring_cfg
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_11
LBB0_8:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	%r12, %rdi
	callq	_ath10k_htt_h2t_aggr_cfg_msg
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_11
LBB0_9:
	xorl	%r15d, %r15d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_HTT_TARGET_VERSION_TIMEOUT_HZ,4,2 ## @HTT_TARGET_VERSION_TIMEOUT_HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"htt version request timed out\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"failed to verify htt version: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to setup rx ring: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to setup amsdu/ampdu limit: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_htt_setup               ; -- Begin function ath10k_htt_setup
	.p2align	2
_ath10k_htt_setup:                      ; @ath10k_htt_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	ldr	x19, [x0, #16]
	add	x22, x0, #8
	mov	x0, x22
	bl	_init_completion
	mov	x0, x20
	bl	_ath10k_htt_h2t_ver_req_msg
	mov	x21, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
Lloh0:
	adrp	x8, _HTT_TARGET_VERSION_TIMEOUT_HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTT_TARGET_VERSION_TIMEOUT_HZ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x20
	bl	_ath10k_htt_verify_version
	cbz	w0, LBB0_6
; %bb.4:
	mov	x21, x0
	str	x21, [sp]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
	b	LBB0_1
LBB0_5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh7:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_1
LBB0_6:
	mov	x0, x20
	bl	_ath10k_htt_send_frag_desc_bank_cfg
	mov	x21, x0
	cbnz	w0, LBB0_1
; %bb.7:
	mov	x0, x20
	bl	_ath10k_htt_send_rx_ring_cfg
	cbz	w0, LBB0_9
; %bb.8:
	mov	x21, x0
	str	x21, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_9:
	ldp	w2, w1, [x20]
	mov	x0, x20
	bl	_ath10k_htt_h2t_aggr_cfg_msg
	mov	x21, x0
	cbz	w0, LBB0_1
; %bb.10:
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_ath10k_warn
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HTT_TARGET_VERSION_TIMEOUT_HZ,4,2 ; @HTT_TARGET_VERSION_TIMEOUT_HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"htt version request timed out\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"failed to verify htt version: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to setup rx ring: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to setup amsdu/ampdu limit: %d\n"

.subsections_via_symbols
