	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function halbtc_send_bt_mp_operation
_halbtc_send_bt_mp_operation:           ## @halbtc_send_bt_mp_operation
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_halbtc_is_hw_mailbox_exist
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_reinit_completion
LBB0_4:
	movq	8(%rbx), %r12
	leal	-131(%r14), %eax
	cmpl	$10, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	ja	LBB0_5
## %bb.6:
	cltq
	leaq	l_switch.table.halbtc_send_bt_mp_operation(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_5:
	movq	_BT_SEQ_DONT_CARE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r15d
	movl	%r15d, %eax
	shll	$4, %eax
	movzbl	%al, %eax
	orl	%eax, (%r13)
	movl	%r14d, 4(%r13)
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movl	(%r12), %edi
	movl	$103, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	callq	*(%rax)
	movl	$1, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_11
## %bb.8:
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	xorl	%ebx, %ebx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r15d, %r8d
	movq	%r14, %r9
	xorl	%eax, %eax
	callq	_RT_TRACE
	xorl	%eax, %eax
	callq	_in_interrupt
	testq	%rax, %rax
	jne	LBB0_11
## %bb.9:
	movq	%r14, %rdi
	callq	_msecs_to_jiffies
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movl	$1, %ebx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movl	(%r13), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
LBB0_11:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_SEQ_GET_BT_VERSION,4,2      ## @BT_SEQ_GET_BT_VERSION
	.comm	_BT_SEQ_GET_AFH_MAP_L,4,2       ## @BT_SEQ_GET_AFH_MAP_L
	.comm	_BT_SEQ_GET_AFH_MAP_M,4,2       ## @BT_SEQ_GET_AFH_MAP_M
	.comm	_BT_SEQ_GET_AFH_MAP_H,4,2       ## @BT_SEQ_GET_AFH_MAP_H
	.comm	_BT_SEQ_GET_BT_COEX_SUPPORTED_FEATURE,4,2 ## @BT_SEQ_GET_BT_COEX_SUPPORTED_FEATURE
	.comm	_BT_SEQ_GET_BT_COEX_SUPPORTED_VERSION,4,2 ## @BT_SEQ_GET_BT_COEX_SUPPORTED_VERSION
	.comm	_BT_SEQ_GET_BT_ANT_DET_VAL,4,2  ## @BT_SEQ_GET_BT_ANT_DET_VAL
	.comm	_BT_SEQ_GET_BT_BLE_SCAN_PARA,4,2 ## @BT_SEQ_GET_BT_BLE_SCAN_PARA
	.comm	_BT_SEQ_GET_BT_BLE_SCAN_TYPE,4,2 ## @BT_SEQ_GET_BT_BLE_SCAN_TYPE
	.comm	_BT_SEQ_GET_BT_DEVICE_INFO,4,2  ## @BT_SEQ_GET_BT_DEVICE_INFO
	.comm	_BT_SEQ_GET_BT_FORB_SLOT_VAL,4,2 ## @BT_SEQ_GET_BT_FORB_SLOT_VAL
	.comm	_BT_SEQ_DONT_CARE,4,2           ## @BT_SEQ_DONT_CARE
	.comm	_COMP_BT_COEXIST,4,2            ## @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"btmpinfo wait req_num=%d wait=%ld\n"

	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
L_.str.1:                               ## @.str.1
	.asciz	"btmpinfo wait (req_num=%d) timeout\n"

	.no_dead_strip	_halbtc_send_bt_mp_operation
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.halbtc_send_bt_mp_operation
l_switch.table.halbtc_send_bt_mp_operation:
	.quad	_BT_SEQ_GET_BT_VERSION
	.quad	_BT_SEQ_GET_BT_FORB_SLOT_VAL
	.quad	_BT_SEQ_GET_BT_DEVICE_INFO
	.quad	_BT_SEQ_GET_BT_COEX_SUPPORTED_VERSION
	.quad	_BT_SEQ_GET_BT_COEX_SUPPORTED_FEATURE
	.quad	_BT_SEQ_GET_BT_BLE_SCAN_TYPE
	.quad	_BT_SEQ_GET_BT_BLE_SCAN_PARA
	.quad	_BT_SEQ_GET_BT_ANT_DET_VAL
	.quad	_BT_SEQ_GET_AFH_MAP_M
	.quad	_BT_SEQ_GET_AFH_MAP_L
	.quad	_BT_SEQ_GET_AFH_MAP_H

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function halbtc_send_bt_mp_operation
_halbtc_send_bt_mp_operation:           ; @halbtc_send_bt_mp_operation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x24, x3
	mov	x23, x2
	mov	x25, x1
	mov	x19, x0
	bl	_halbtc_is_hw_mailbox_exist
	cbz	w0, LBB0_11
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_reinit_completion
LBB0_3:
	ldr	x21, [x19, #8]
	sub	w8, w25, #131
	cmp	w8, #10
	b.hi	LBB0_5
; %bb.4:
Lloh0:
	adrp	x9, l_switch.table.halbtc_send_bt_mp_operation@PAGE
Lloh1:
	add	x9, x9, l_switch.table.halbtc_send_bt_mp_operation@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _BT_SEQ_DONT_CARE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BT_SEQ_DONT_CARE@GOTPAGEOFF]
LBB0_6:
	ldr	w22, [x8]
	ldr	w8, [x23]
	ubfiz	w9, w22, #4, #4
	orr	w8, w9, w8
	stp	w8, w25, [x23]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x21]
	mov	w1, #103
	mov	x2, x24
	mov	x3, x23
	blr	x8
	cbz	x20, LBB0_10
; %bb.7:
Lloh4:
	adrp	x23, _COMP_BT_COEXIST@GOTPAGE
Lloh5:
	ldr	x23, [x23, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh6:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	str	x20, [sp]
	mov	x0, x21
	mov	x4, x22
	bl	_RT_TRACE
	bl	_in_interrupt
	cbz	x0, LBB0_9
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	mov	x0, x20
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_wait_for_completion_timeout
	cbz	x0, LBB0_12
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	ldr	w1, [x23]
Lloh11:
	adrp	x8, _DBG_DMESG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DBG_DMESG@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x4, x22
	bl	_RT_TRACE
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_SEQ_GET_BT_VERSION,4,2      ; @BT_SEQ_GET_BT_VERSION
	.comm	_BT_SEQ_GET_AFH_MAP_L,4,2       ; @BT_SEQ_GET_AFH_MAP_L
	.comm	_BT_SEQ_GET_AFH_MAP_M,4,2       ; @BT_SEQ_GET_AFH_MAP_M
	.comm	_BT_SEQ_GET_AFH_MAP_H,4,2       ; @BT_SEQ_GET_AFH_MAP_H
	.comm	_BT_SEQ_GET_BT_COEX_SUPPORTED_FEATURE,4,2 ; @BT_SEQ_GET_BT_COEX_SUPPORTED_FEATURE
	.comm	_BT_SEQ_GET_BT_COEX_SUPPORTED_VERSION,4,2 ; @BT_SEQ_GET_BT_COEX_SUPPORTED_VERSION
	.comm	_BT_SEQ_GET_BT_ANT_DET_VAL,4,2  ; @BT_SEQ_GET_BT_ANT_DET_VAL
	.comm	_BT_SEQ_GET_BT_BLE_SCAN_PARA,4,2 ; @BT_SEQ_GET_BT_BLE_SCAN_PARA
	.comm	_BT_SEQ_GET_BT_BLE_SCAN_TYPE,4,2 ; @BT_SEQ_GET_BT_BLE_SCAN_TYPE
	.comm	_BT_SEQ_GET_BT_DEVICE_INFO,4,2  ; @BT_SEQ_GET_BT_DEVICE_INFO
	.comm	_BT_SEQ_GET_BT_FORB_SLOT_VAL,4,2 ; @BT_SEQ_GET_BT_FORB_SLOT_VAL
	.comm	_BT_SEQ_DONT_CARE,4,2           ; @BT_SEQ_DONT_CARE
	.comm	_COMP_BT_COEXIST,4,2            ; @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"btmpinfo wait req_num=%d wait=%ld\n"

	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
l_.str.1:                               ; @.str.1
	.asciz	"btmpinfo wait (req_num=%d) timeout\n"

	.no_dead_strip	_halbtc_send_bt_mp_operation
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.halbtc_send_bt_mp_operation
l_switch.table.halbtc_send_bt_mp_operation:
	.quad	_BT_SEQ_GET_BT_VERSION
	.quad	_BT_SEQ_GET_BT_FORB_SLOT_VAL
	.quad	_BT_SEQ_GET_BT_DEVICE_INFO
	.quad	_BT_SEQ_GET_BT_COEX_SUPPORTED_VERSION
	.quad	_BT_SEQ_GET_BT_COEX_SUPPORTED_FEATURE
	.quad	_BT_SEQ_GET_BT_BLE_SCAN_TYPE
	.quad	_BT_SEQ_GET_BT_BLE_SCAN_PARA
	.quad	_BT_SEQ_GET_BT_ANT_DET_VAL
	.quad	_BT_SEQ_GET_AFH_MAP_M
	.quad	_BT_SEQ_GET_AFH_MAP_L
	.quad	_BT_SEQ_GET_AFH_MAP_H

.subsections_via_symbols
