	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_qmi_init                ## -- Begin function ath10k_qmi_init
	.p2align	4, 0x90
_ath10k_qmi_init:                       ## @ath10k_qmi_init
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_ath10k_snoc_priv
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, 24(%rax)
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_ath10k_qmi_setup_msa_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	_WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_qmi_msg_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ath10k_qmi_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	callq	_qmi_handle_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	_WQ_UNBOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	$1, %edx
	callq	_alloc_workqueue
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	16(%r15), %rdi
	callq	_INIT_LIST_HEAD
	leaq	12(%r15), %rdi
	callq	_spin_lock_init
	movq	%r15, %rdi
	addq	$8, %rdi
	movq	_ath10k_qmi_driver_event_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_WLFW_SERVICE_ID_V01@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WLFW_SERVICE_VERS_V01@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_qmi_add_lookup
	testl	%eax, %eax
	je	LBB0_10
## %bb.7:
	movl	%eax, %r14d
	movl	4(%r15), %edi
	callq	_destroy_workqueue
	movl	%r14d, %ebx
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_ath10k_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_qmi_handle_release
LBB0_9:
	movq	%r15, %rdi
	callq	_kfree
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN,4,2 ## @WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN
	.comm	_ath10k_qmi_ops,4,2             ## @ath10k_qmi_ops
	.comm	_qmi_msg_handler,4,2            ## @qmi_msg_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ath10k_qmi_driver_event"

	.comm	_WQ_UNBOUND,4,2                 ## @WQ_UNBOUND
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate workqueue\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_ath10k_qmi_driver_event_work,4,2 ## @ath10k_qmi_driver_event_work
	.comm	_WLFW_SERVICE_ID_V01,4,2        ## @WLFW_SERVICE_ID_V01
	.comm	_WLFW_SERVICE_VERS_V01,4,2      ## @WLFW_SERVICE_VERS_V01
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_qmi_init                ; -- Begin function ath10k_qmi_init
	.p2align	2
_ath10k_qmi_init:                       ; @ath10k_qmi_init
	.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, x1
	mov	x20, x0
	bl	_ath10k_snoc_priv
	mov	x22, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #24]
	str	x0, [x22]
	mov	x1, x21
	bl	_ath10k_qmi_setup_msa_resources
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _qmi_msg_handler@GOTPAGE
Lloh7:
	ldr	x8, [x8, _qmi_msg_handler@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x2, _ath10k_qmi_ops@GOTPAGE
Lloh10:
	ldr	x2, [x2, _ath10k_qmi_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_qmi_handle_init
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.3:
Lloh11:
	adrp	x8, _WQ_UNBOUND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WQ_UNBOUND@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #1
	bl	_alloc_workqueue
	str	w0, [x19, #4]
	cbz	w0, LBB0_7
; %bb.4:
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
	add	x0, x19, #12
	bl	_spin_lock_init
	add	x0, x19, #8
Lloh16:
	adrp	x8, _ath10k_qmi_driver_event_work@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ath10k_qmi_driver_event_work@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh19:
	adrp	x8, _WLFW_SERVICE_ID_V01@GOTPAGE
Lloh20:
	ldr	x8, [x8, _WLFW_SERVICE_ID_V01@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _WLFW_SERVICE_VERS_V01@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WLFW_SERVICE_VERS_V01@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	bl	_qmi_add_lookup
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.5:
	ldr	w0, [x19, #4]
	bl	_destroy_workqueue
	b	LBB0_8
LBB0_6:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_7:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_ath10k_err
Lloh30:
	adrp	x8, _EFAULT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x19
	bl	_qmi_handle_release
LBB0_9:
	mov	x0, x19
	bl	_kfree
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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN,4,2 ; @WLFW_BDF_DOWNLOAD_REQ_MSG_V01_MAX_MSG_LEN
	.comm	_ath10k_qmi_ops,4,2             ; @ath10k_qmi_ops
	.comm	_qmi_msg_handler,4,2            ; @qmi_msg_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ath10k_qmi_driver_event"

	.comm	_WQ_UNBOUND,4,2                 ; @WQ_UNBOUND
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate workqueue\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_ath10k_qmi_driver_event_work,4,2 ; @ath10k_qmi_driver_event_work
	.comm	_WLFW_SERVICE_ID_V01,4,2        ; @WLFW_SERVICE_ID_V01
	.comm	_WLFW_SERVICE_VERS_V01,4,2      ; @WLFW_SERVICE_VERS_V01
.subsections_via_symbols
