	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mfi_dcmd_command               ## -- Begin function mfi_dcmd_command
	.p2align	4, 0x90
_mfi_dcmd_command:                      ## @mfi_dcmd_command
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%rcx, %r13
	movq	%rdx, %r15
	movl	%esi, %r12d
	testq	%r8, %r8
	je	LBB0_4
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	_MFI_MBOX_SIZE@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jb	LBB0_3
## %bb.6:
	movq	%r8, %r14
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leaq	-112(%rbp), %rdi
	movl	$64, %esi
	callq	_bzero
	movl	-52(%rbp), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_bcopy
	jmp	LBB0_7
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
	jmp	LBB0_13
LBB0_5:
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	leaq	-112(%rbp), %rdi
	movl	$64, %esi
	callq	_bzero
LBB0_7:
	movq	_MFI_CMD_DCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -80(%rbp)
	movq	%r13, -96(%rbp)
	movl	%r12d, -56(%rbp)
	movq	%r15, -104(%rbp)
	movq	%r13, -112(%rbp)
	movq	_MFIIO_PASSTHRU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-112(%rbp), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_ioctl
	testl	%eax, %eax
	js	LBB0_13
## %bb.8:
	movq	16(%rbp), %rax
	movq	-88(%rbp), %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rdi, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_10:
	movq	_MFI_STAT_OK@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpq	(%rcx), %rdi
	jne	LBB0_11
LBB0_13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	_mfi_status
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_warnx
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MFI_MBOX_SIZE,8,3              ## @MFI_MBOX_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_MFI_CMD_DCMD,4,2               ## @MFI_CMD_DCMD
	.comm	_MFIIO_PASSTHRU,4,2             ## @MFIIO_PASSTHRU
	.comm	_MFI_STAT_OK,8,3                ## @MFI_STAT_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Command failed: %s"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mfi_dcmd_command               ; -- Begin function mfi_dcmd_command
	.p2align	2
_mfi_dcmd_command:                      ; @mfi_dcmd_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x6
	mov	x24, x5
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	cbz	x4, LBB0_4
; %bb.1:
	cbz	x24, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _MFI_MBOX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MFI_MBOX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x24
	b.lo	LBB0_5
; %bb.3:
	mov	x25, x4
	mov	x0, sp
	mov	w1, #64
	bl	_bzero
	ldr	w1, [sp, #60]
	mov	x0, x25
	mov	x2, x24
	bl	_bcopy
	b	LBB0_8
LBB0_4:
	cbz	x24, LBB0_7
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	mov	w0, #-1
	b	LBB0_13
LBB0_7:
	mov	x0, sp
	mov	w1, #64
	bl	_bzero
LBB0_8:
Lloh8:
	adrp	x8, _MFI_CMD_DCMD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MFI_CMD_DCMD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	xzr, xzr, [sp, #32]
	stp	x22, x21, [sp, #8]
	str	w8, [sp, #48]
	str	w23, [sp, #56]
	str	x21, [sp]
Lloh11:
	adrp	x8, _MFIIO_PASSTHRU@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MFIIO_PASSTHRU@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_ioctl
	tbnz	w0, #31, LBB0_13
; %bb.9:
	ldr	x8, [sp, #24]
	cbz	x19, LBB0_11
; %bb.10:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_13
LBB0_11:
Lloh14:
	adrp	x9, _MFI_STAT_OK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MFI_STAT_OK@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	mov	x0, x8
	bl	_mfi_status
	mov	x1, x0
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warnx
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MFI_MBOX_SIZE,8,3              ; @MFI_MBOX_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_MFI_CMD_DCMD,4,2               ; @MFI_CMD_DCMD
	.comm	_MFIIO_PASSTHRU,4,2             ; @MFIIO_PASSTHRU
	.comm	_MFI_STAT_OK,8,3                ; @MFI_STAT_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Command failed: %s"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
