	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_connect             ## -- Begin function ath10k_wmi_connect
	.p2align	4, 0x90
_ath10k_wmi_connect:                    ## @ath10k_wmi_connect
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	addq	$4, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	_ath10k_wmi_htc_tx_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_ath10k_wmi_process_rx@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_ath10k_wmi_op_ep_tx_credits@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_ATH10K_HTC_SVC_ID_WMI_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	24(%r14), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ath10k_htc_connect_service
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_ath10k_warn
	jmp	LBB0_3
LBB0_2:
	movl	-72(%rbp), %eax
	movl	%eax, (%r14)
LBB0_3:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ath10k_wmi_htc_tx_complete,4,2 ## @ath10k_wmi_htc_tx_complete
	.comm	_ath10k_wmi_process_rx,4,2      ## @ath10k_wmi_process_rx
	.comm	_ath10k_wmi_op_ep_tx_credits,4,2 ## @ath10k_wmi_op_ep_tx_credits
	.comm	_ATH10K_HTC_SVC_ID_WMI_CONTROL,4,2 ## @ATH10K_HTC_SVC_ID_WMI_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to connect to WMI CONTROL service status: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_wmi_connect             ; -- Begin function ath10k_wmi_connect
	.p2align	2
_ath10k_wmi_connect:                    ; @ath10k_wmi_connect
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x0, x0, #4
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #20
	bl	_memset
Lloh0:
	adrp	x8, _ath10k_wmi_htc_tx_complete@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ath10k_wmi_htc_tx_complete@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ath10k_wmi_process_rx@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ath10k_wmi_process_rx@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #36]
Lloh6:
	adrp	x8, _ath10k_wmi_op_ep_tx_credits@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ath10k_wmi_op_ep_tx_credits@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _ATH10K_HTC_SVC_ID_WMI_CONTROL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ATH10K_HTC_SVC_ID_WMI_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #28]
	add	x0, x19, #24
	add	x1, sp, #24
	mov	x2, sp
	bl	_ath10k_htc_connect_service
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_ath10k_warn
	b	LBB0_3
LBB0_2:
	ldr	w8, [sp]
	str	w8, [x19]
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ath10k_wmi_htc_tx_complete,4,2 ; @ath10k_wmi_htc_tx_complete
	.comm	_ath10k_wmi_process_rx,4,2      ; @ath10k_wmi_process_rx
	.comm	_ath10k_wmi_op_ep_tx_credits,4,2 ; @ath10k_wmi_op_ep_tx_credits
	.comm	_ATH10K_HTC_SVC_ID_WMI_CONTROL,4,2 ; @ATH10K_HTC_SVC_ID_WMI_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to connect to WMI CONTROL service status: %d\n"

.subsections_via_symbols
