	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mps_firmware_send              ## -- Begin function mps_firmware_send
	.p2align	4, 0x90
_mps_firmware_send:                     ## @mps_firmware_send
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	-56(%rbp), %rdi
	movl	$16, %esi
	callq	_bzero
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	movl	$16, %esi
	callq	_bzero
	movq	_MPI2_FUNCTION_FW_DOWNLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	testl	%r12d, %r12d
	jne	LBB0_1
## %bb.2:
	movq	_MPI2_FW_DOWNLOAD_ITYPE_FW@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MPI2_FW_DOWNLOAD_ITYPE_BIOS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	%ebx, -52(%rbp)
	movq	_MPI2_FW_DOWNLOAD_MSGFLGS_LAST_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	%r15d, %edi
	leaq	-56(%rbp), %rsi
	movl	$16, %edx
	movq	%r13, %rcx
	movl	$16, %r8d
	movq	%r14, %r9
	pushq	$0
	pushq	%rbx
	callq	_mps_user_command
	addq	$16, %rsp
	xorl	%ecx, %ecx
	negq	%rax
	sbbl	%ecx, %ecx
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MPI2_FUNCTION_FW_DOWNLOAD,4,2  ## @MPI2_FUNCTION_FW_DOWNLOAD
	.comm	_MPI2_FW_DOWNLOAD_ITYPE_BIOS,4,2 ## @MPI2_FW_DOWNLOAD_ITYPE_BIOS
	.comm	_MPI2_FW_DOWNLOAD_ITYPE_FW,4,2  ## @MPI2_FW_DOWNLOAD_ITYPE_FW
	.comm	_MPI2_FW_DOWNLOAD_MSGFLGS_LAST_SEGMENT,4,2 ## @MPI2_FW_DOWNLOAD_MSGFLGS_LAST_SEGMENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mps_firmware_send              ; -- Begin function mps_firmware_send
	.p2align	2
_mps_firmware_send:                     ; @mps_firmware_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x0, sp, #16
	mov	w1, #16
	bl	_bzero
	mov	x0, sp
	mov	w1, #16
	bl	_bzero
Lloh0:
	adrp	x8, _MPI2_FUNCTION_FW_DOWNLOAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPI2_FUNCTION_FW_DOWNLOAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MPI2_FW_DOWNLOAD_ITYPE_BIOS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MPI2_FW_DOWNLOAD_ITYPE_BIOS@GOTPAGEOFF]
	str	w8, [sp, #28]
Lloh5:
	adrp	x8, _MPI2_FW_DOWNLOAD_ITYPE_FW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPI2_FW_DOWNLOAD_ITYPE_FW@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh7:
	adrp	x8, _MPI2_FW_DOWNLOAD_MSGFLGS_LAST_SEGMENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MPI2_FW_DOWNLOAD_MSGFLGS_LAST_SEGMENT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stp	w8, w20, [sp, #16]
	add	x1, sp, #16
	mov	x3, sp
	mov	x0, x22
	mov	w2, #16
	mov	w4, #16
	mov	x5, x21
	mov	x6, x20
	mov	w7, #0
	bl	_mps_user_command
	cmp	x0, #0
	csetm	w0, ne
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MPI2_FUNCTION_FW_DOWNLOAD,4,2  ; @MPI2_FUNCTION_FW_DOWNLOAD
	.comm	_MPI2_FW_DOWNLOAD_ITYPE_BIOS,4,2 ; @MPI2_FW_DOWNLOAD_ITYPE_BIOS
	.comm	_MPI2_FW_DOWNLOAD_ITYPE_FW,4,2  ; @MPI2_FW_DOWNLOAD_ITYPE_FW
	.comm	_MPI2_FW_DOWNLOAD_MSGFLGS_LAST_SEGMENT,4,2 ; @MPI2_FW_DOWNLOAD_MSGFLGS_LAST_SEGMENT
.subsections_via_symbols
