	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_usb_bmi_exchange_msg
_ath10k_usb_bmi_exchange_msg:           ## @ath10k_usb_bmi_exchange_msg
	.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	%r8, %r12
	movq	%rcx, %r14
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movl	%edx, %r9d
	movq	%rsi, %r8
	movq	_ATH10K_USB_CONTROL_REQ_SEND_BMI_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_ath10k_usb_submit_ctrl_out
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	jmp	LBB0_7
LBB0_3:
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	_ATH10K_USB_CONTROL_REQ_RECV_BMI_RESP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %r9d
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	callq	_ath10k_usb_submit_ctrl_in
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_ath10k_warn
	movl	%r14d, %ebx
	jmp	LBB0_7
LBB0_4:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH10K_USB_CONTROL_REQ_SEND_BMI_CMD,4,2 ## @ATH10K_USB_CONTROL_REQ_SEND_BMI_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to send the bmi data to the device: %d\n"

	.comm	_ATH10K_USB_CONTROL_REQ_RECV_BMI_RESP,4,2 ## @ATH10K_USB_CONTROL_REQ_RECV_BMI_RESP
L_.str.1:                               ## @.str.1
	.asciz	"Unable to read the bmi data from the device: %d\n"

	.no_dead_strip	_ath10k_usb_bmi_exchange_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_usb_bmi_exchange_msg
_ath10k_usb_bmi_exchange_msg:           ; @ath10k_usb_bmi_exchange_msg
	.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	x22, x4
	mov	x20, x3
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	mov	x5, x2
	mov	x4, x1
Lloh0:
	adrp	x8, _ATH10K_USB_CONTROL_REQ_SEND_BMI_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH10K_USB_CONTROL_REQ_SEND_BMI_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_ath10k_usb_submit_ctrl_out
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
	cbz	x20, LBB0_7
; %bb.4:
Lloh5:
	adrp	x8, _ATH10K_USB_CONTROL_REQ_RECV_BMI_RESP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ATH10K_USB_CONTROL_REQ_RECV_BMI_RESP@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w5, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	x4, x20
	bl	_ath10k_usb_submit_ctrl_in
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	mov	x2, x21
	bl	_ath10k_warn
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH10K_USB_CONTROL_REQ_SEND_BMI_CMD,4,2 ; @ATH10K_USB_CONTROL_REQ_SEND_BMI_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to send the bmi data to the device: %d\n"

	.comm	_ATH10K_USB_CONTROL_REQ_RECV_BMI_RESP,4,2 ; @ATH10K_USB_CONTROL_REQ_RECV_BMI_RESP
l_.str.1:                               ; @.str.1
	.asciz	"Unable to read the bmi data from the device: %d\n"

	.no_dead_strip	_ath10k_usb_bmi_exchange_msg
.subsections_via_symbols
