	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isst_if_mbox_proc_cmd
_isst_if_mbox_proc_cmd:                 ## @isst_if_mbox_proc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_isst_if_mbox_cmd_invalid
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, %rdi
	callq	_isst_if_mbox_cmd_set_req
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movl	8(%rbx), %edi
	movl	$1, %esi
	movl	$30, %edx
	movl	$1, %ecx
	callq	_isst_if_get_pci_dev
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_isst_if_mbox_cmd
	movl	%eax, %r13d
	orl	%eax, %r15d
	jne	LBB0_13
## %bb.9:
	movq	%rbx, %rdi
	callq	_isst_if_mbox_cmd_set_req
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movl	16(%rbx), %edi
	movl	12(%rbx), %esi
	movl	8(%rbx), %edx
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	movl	$1, %ecx
	callq	_isst_store_cmd
	movl	%eax, %r13d
LBB0_13:
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%r13d, %r13d
	je	LBB0_11
## %bb.14:
	movslq	%r13d, %rax
	jmp	LBB0_15
LBB0_5:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_10:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_11:
	movl	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_EPERM,8,3                      ## @EPERM
	.no_dead_strip	_isst_if_mbox_proc_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_mbox_proc_cmd
_isst_if_mbox_proc_cmd:                 ; @isst_if_mbox_proc_cmd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_isst_if_mbox_cmd_invalid
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x20
	bl	_isst_if_mbox_cmd_set_req
	cbz	x0, LBB0_6
; %bb.5:
Lloh2:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_13
LBB0_6:
	ldr	w0, [x20, #8]
	mov	w1, #1
	mov	w2, #30
	mov	w3, #1
	bl	_isst_if_get_pci_dev
	cbz	x0, LBB0_1
; %bb.7:
	mov	x23, x0
	bl	_pci_get_drvdata
	cbz	x0, LBB0_1
; %bb.8:
	mov	x22, x0
	bl	_mutex_lock
	mov	x0, x23
	mov	x1, x20
	bl	_isst_if_mbox_cmd
	mov	x23, x0
	orr	w8, w0, w21
	cbnz	w8, LBB0_11
; %bb.9:
	mov	x0, x20
	bl	_isst_if_mbox_cmd_set_req
	cbz	x0, LBB0_14
; %bb.10:
	ldp	w1, w0, [x20, #12]
	ldp	w4, w2, [x20, #4]
	ldr	w5, [x20]
	mov	w3, #1
	bl	_isst_store_cmd
	mov	x23, x0
LBB0_11:
	mov	x0, x22
	bl	_mutex_unlock
	cbz	w23, LBB0_15
; %bb.12:
	sxtw	x0, w23
	b	LBB0_3
LBB0_13:
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_2
LBB0_14:
	mov	x0, x22
	bl	_mutex_unlock
LBB0_15:
	mov	x0, #0
	str	wzr, [x19]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_EPERM,8,3                      ; @EPERM
	.no_dead_strip	_isst_if_mbox_proc_cmd
.subsections_via_symbols
