	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_bmi_set_start           ## -- Begin function ath10k_bmi_set_start
	.p2align	4, 0x90
_ath10k_bmi_set_start:                  ## @ath10k_bmi_set_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_ath10k_warn
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	movl	%esi, %ebx
	movq	_BMI_SET_APP_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___cpu_to_le32
	movq	%rax, -32(%rbp)
	movl	%ebx, %edi
	callq	___cpu_to_le32
	movq	%rax, -40(%rbp)
	xorl	%ebx, %ebx
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ath10k_hif_exchange_bmi_msg
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_ath10k_warn
	movl	%r15d, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bmi set start command disallowed\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_BMI_SET_APP_START,4,2          ## @BMI_SET_APP_START
L_.str.1:                               ## @.str.1
	.asciz	"unable to set start to the device:%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath10k_bmi_set_start           ; -- Begin function ath10k_bmi_set_start
	.p2align	2
_ath10k_bmi_set_start:                  ; @ath10k_bmi_set_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
Lloh2:
	adrp	x8, _EBUSY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_4
LBB0_2:
	mov	x20, x1
Lloh5:
	adrp	x8, _BMI_SET_APP_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BMI_SET_APP_START@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	___cpu_to_le32
	str	x0, [sp, #24]
	mov	x0, x20
	bl	___cpu_to_le32
	str	x0, [sp, #16]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #16
	mov	x3, #0
	mov	x4, #0
	bl	_ath10k_hif_exchange_bmi_msg
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.3:
	str	x20, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ath10k_warn
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bmi set start command disallowed\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_BMI_SET_APP_START,4,2          ; @BMI_SET_APP_START
l_.str.1:                               ; @.str.1
	.asciz	"unable to set start to the device:%d\n"

.subsections_via_symbols
