	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_ipmb_msg
_format_ipmb_msg:                       ## @format_ipmb_msg
	.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
	movl	%r9d, %r15d
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movb	16(%rbp), %r13b
	movq	_IPMI_NETFN_APP_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$2, %ecx
	movq	(%rdi), %rax
	movl	%ecx, (%rax)
	movq	_IPMI_SEND_MSG_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rdx), %ecx
	movl	%ecx, 8(%rax)
	testl	%r9d, %r9d
	je	LBB0_2
## %bb.1:
	movl	$0, 12(%rax)
LBB0_2:
	movl	4(%rdx), %ecx
	movslq	%r15d, %r14
	leaq	(%rax,%r14,4), %rdi
	addq	$12, %rdi
	movl	%ecx, 12(%rax,%r14,4)
	movl	(%r12), %ecx
	movl	8(%rdx), %edx
	andl	$3, %edx
	leal	(%rdx,%rcx,4), %ecx
	movl	%ecx, 16(%rax,%r14,4)
	movl	$2, %esi
	callq	_ipmb_checksum
	movq	(%rbx), %rcx
	movl	%eax, 20(%rcx,%r14,4)
	movzbl	%r13b, %eax
	leaq	6(%r14), %r13
	movl	%eax, 24(%rcx,%r14,4)
	movzbl	-44(%rbp), %eax                 ## 1-byte Folded Reload
	shll	$2, %eax
	movzbl	24(%rbp), %edx
	orl	%eax, %edx
	movl	%edx, 28(%rcx,%r14,4)
	movzbl	4(%r12), %eax
	movl	%eax, 32(%rcx,%r14,4)
	movl	8(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_4
## %bb.3:
	leaq	(%rcx,%r14,4), %rdi
	addq	$36, %rdi
	movl	12(%r12), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movl	8(%r12), %edx
	movq	(%rbx), %rcx
LBB0_4:
	leal	9(%rdx), %eax
	movl	%eax, 8(%rbx)
	leaq	(%rcx,%r13,4), %rdi
	addl	$3, %edx
	movl	%edx, %esi
	callq	_ipmb_checksum
	movq	(%rbx), %rcx
	movslq	8(%rbx), %rdx
	addq	%r14, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	8(%rbx), %eax
	addl	%r15d, %eax
	incl	%eax
	movl	%eax, 8(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPMI_NETFN_APP_REQUEST,4,2     ## @IPMI_NETFN_APP_REQUEST
	.comm	_IPMI_SEND_MSG_CMD,4,2          ## @IPMI_SEND_MSG_CMD
	.no_dead_strip	_format_ipmb_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_ipmb_msg
_format_ipmb_msg:                       ; @format_ipmb_msg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x7
	mov	x24, x6
	mov	x20, x5
	mov	x25, x4
	mov	x19, x3
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _IPMI_NETFN_APP_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPMI_NETFN_APP_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w9, w8, #2
	ldr	x8, [x0]
	str	w9, [x8]
Lloh3:
	adrp	x9, _IPMI_SEND_MSG_CMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPMI_SEND_MSG_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	str	w9, [x8, #4]
	ldr	w9, [x2]
	str	w9, [x8, #8]
	cbz	w5, LBB0_2
; %bb.1:
	str	wzr, [x8, #12]
LBB0_2:
	ldr	w9, [x2, #4]
	sxtw	x27, w20
	sbfiz	x26, x20, #2, #32
	add	x0, x26, x8
	str	w9, [x0, #12]!
	ldr	w8, [x22]
	ldr	w9, [x2, #8]
	bfi	w9, w8, #2, #30
	str	w9, [x0, #4]
	mov	w1, #2
	bl	_ipmb_checksum
	ldr	x8, [x21]
	add	x9, x26, x8
	str	w0, [x9, #20]
	add	x26, x27, #6
	str	w24, [x8, x26, lsl #2]
	orr	w10, w23, w25, lsl #2
	ldrb	w11, [x22, #4]
	stp	w10, w11, [x9, #28]
	ldr	w2, [x22, #8]
	cmp	w2, #1
	b.lt	LBB0_4
; %bb.3:
	add	x8, x8, x27, lsl #2
	add	x0, x8, #36
	ldr	w1, [x22, #12]
	bl	_memcpy
	ldr	w2, [x22, #8]
	ldr	x8, [x21]
LBB0_4:
	add	w9, w2, #9
	str	w9, [x21, #8]
	add	x0, x8, x26, lsl #2
	add	w1, w2, #3
	bl	_ipmb_checksum
	ldr	x8, [x21]
	ldr	w9, [x21, #8]
	add	w9, w9, w20
	str	w0, [x8, w9, sxtw #2]
	ldr	w8, [x21, #8]
	add	w8, w20, w8
	add	w8, w8, #1
	str	w8, [x21, #8]
	str	x19, [x21, #16]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IPMI_NETFN_APP_REQUEST,4,2     ; @IPMI_NETFN_APP_REQUEST
	.comm	_IPMI_SEND_MSG_CMD,4,2          ; @IPMI_SEND_MSG_CMD
	.no_dead_strip	_format_ipmb_msg
.subsections_via_symbols
