	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isst_if_send_mbox_cmd
_isst_if_send_mbox_cmd:                 ## @isst_if_send_mbox_cmd
	.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, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %ebx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_MSR_OS_MAILBOX_INTERFACE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_rdmsrl
	movq	_MSR_OS_MAILBOX_BUSY_BIT@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_BIT_ULL
	movq	_MSR_OS_MAILBOX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_wrmsrl
	movl	(%r13), %edi
	callq	_BIT_ULL
	movl	%eax, %ebx
	movl	$13, %edi
	xorl	%esi, %esi
	callq	_GENMASK_ULL
	movl	%eax, %r14d
	andl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	shll	$16, %r14d
	shll	$8, %r15d
	orl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	orl	%ebx, %r15d
	orl	%r15d, %r14d
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_wrmsrl
	movq	_OS_MAILBOX_RETRY_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	%r14d, %esi
	callq	_rdmsrl
	movl	(%r13), %edi
	callq	_BIT_ULL
	testl	%r14d, %eax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	testb	%r15b, %r15b
	je	LBB0_7
## %bb.6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r15d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	_MSR_OS_MAILBOX_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_rdmsrl
	movl	%r14d, (%rbx)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_OS_MAILBOX_RETRY_COUNT,4,2     ## @OS_MAILBOX_RETRY_COUNT
	.comm	_MSR_OS_MAILBOX_INTERFACE,4,2   ## @MSR_OS_MAILBOX_INTERFACE
	.comm	_MSR_OS_MAILBOX_BUSY_BIT,4,2    ## @MSR_OS_MAILBOX_BUSY_BIT
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_MSR_OS_MAILBOX_DATA,4,2        ## @MSR_OS_MAILBOX_DATA
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_isst_if_send_mbox_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isst_if_send_mbox_cmd
_isst_if_send_mbox_cmd:                 ; @isst_if_send_mbox_cmd
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _MSR_OS_MAILBOX_INTERFACE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSR_OS_MAILBOX_INTERFACE@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_rdmsrl
Lloh2:
	adrp	x26, _MSR_OS_MAILBOX_BUSY_BIT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MSR_OS_MAILBOX_BUSY_BIT@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_BIT_ULL
Lloh4:
	adrp	x25, _MSR_OS_MAILBOX_DATA@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MSR_OS_MAILBOX_DATA@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x20
	bl	_wrmsrl
	ldr	w0, [x26]
	bl	_BIT_ULL
	mov	x20, x0
	mov	w0, #13
	mov	w1, #0
	bl	_GENMASK_ULL
	and	w8, w0, w21
	orr	w9, w23, w22, lsl #8
	orr	w21, w9, w20
	orr	w20, w21, w8, lsl #16
	ldr	w0, [x24]
	mov	x1, x20
	bl	_wrmsrl
Lloh6:
	adrp	x8, _OS_MAILBOX_RETRY_COUNT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OS_MAILBOX_RETRY_COUNT@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x20
	bl	_rdmsrl
	ldr	w0, [x26]
	bl	_BIT_ULL
	tst	w0, w20
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	subs	w22, w22, #1
	b.ne	LBB0_1
; %bb.3:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	tst	w21, #0xff
	b.eq	LBB0_8
; %bb.5:
Lloh11:
	adrp	x8, _ENXIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	cbz	x19, LBB0_10
; %bb.9:
	ldr	w0, [x25]
	mov	x1, x20
	bl	_rdmsrl
	mov	w0, #0
	str	w20, [x19]
	b	LBB0_7
LBB0_10:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_OS_MAILBOX_RETRY_COUNT,4,2     ; @OS_MAILBOX_RETRY_COUNT
	.comm	_MSR_OS_MAILBOX_INTERFACE,4,2   ; @MSR_OS_MAILBOX_INTERFACE
	.comm	_MSR_OS_MAILBOX_BUSY_BIT,4,2    ; @MSR_OS_MAILBOX_BUSY_BIT
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_MSR_OS_MAILBOX_DATA,4,2        ; @MSR_OS_MAILBOX_DATA
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_isst_if_send_mbox_cmd
.subsections_via_symbols
