	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_send_drv_version       ## -- Begin function qed_mcp_send_drv_version
	.p2align	4, 0x90
_qed_mcp_send_drv_version:              ## @qed_mcp_send_drv_version
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	8(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	_MCP_DRV_VER_STR_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	andl	$-4, %eax
	cmpl	$4, %eax
	je	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movl	(%rax,%r15), %edi
	callq	_cpu_to_be32
	movq	-64(%rbp), %rcx
	movl	%eax, (%rcx,%r15)
	incq	%r14
	movslq	(%r13), %rax
	addq	$-4, %rax
	shrq	$2, %rax
	addq	$16, %r15
	cmpq	%r14, %rax
	ja	LBB0_2
LBB0_3:
	leaq	-128(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movq	_DRV_MSG_CODE_SET_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	leaq	-88(%rbp), %rax
	movq	%rax, -120(%rbp)
	movl	$40, -128(%rbp)
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_qed_mcp_cmd_and_union
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_DP_ERR
LBB0_5:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCP_DRV_VER_STR_SIZE,4,2       ## @MCP_DRV_VER_STR_SIZE
	.comm	_DRV_MSG_CODE_SET_VERSION,4,2   ## @DRV_MSG_CODE_SET_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MCP response failure, aborting\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_send_drv_version       ; -- Begin function qed_mcp_send_drv_version
	.p2align	2
_qed_mcp_send_drv_version:              ; @qed_mcp_send_drv_version
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x22, sp
	mov	w23, #40
	mov	x0, sp
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w8, [x21, #8]
	str	w8, [sp, #32]
Lloh0:
	adrp	x24, _MCP_DRV_VER_STR_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MCP_DRV_VER_STR_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	and	w8, w8, #0xfffffffc
	cmp	w8, #4
	b.eq	LBB0_3
; %bb.1:
	mov	x25, #0
	mov	x26, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w0, [x8, x25]
	bl	_cpu_to_be32
	ldr	x8, [sp, #24]
	str	w0, [x8, x25]
	add	x26, x26, #1
	ldrsw	x8, [x24]
	sub	x8, x8, #4
	add	x25, x25, #16
	cmp	x26, x8, lsr #2
	b.lo	LBB0_2
LBB0_3:
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #40
	bl	_memset
Lloh2:
	adrp	x8, _DRV_MSG_CODE_SET_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRV_MSG_CODE_SET_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #56]
	str	x22, [sp, #48]
	str	w23, [sp, #40]
	add	x2, sp, #40
	mov	x0, x19
	mov	x1, x20
	bl	_qed_mcp_cmd_and_union
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_ERR
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MCP_DRV_VER_STR_SIZE,4,2       ; @MCP_DRV_VER_STR_SIZE
	.comm	_DRV_MSG_CODE_SET_VERSION,4,2   ; @DRV_MSG_CODE_SET_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MCP response failure, aborting\n"

.subsections_via_symbols
