	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_lan_msg
_format_lan_msg:                        ## @format_lan_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, %ebx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_IPMI_NETFN_APP_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$2, %eax
	movq	(%rdi), %rcx
	movl	%eax, (%rcx)
	movq	_IPMI_SEND_MSG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movl	(%rdx), %eax
	movl	%eax, 8(%rcx)
	movl	4(%rdx), %eax
	movl	%eax, 12(%rcx)
	movl	8(%rdx), %eax
	leaq	16(%rcx), %rdi
	movl	%eax, 16(%rcx)
	movl	(%rsi), %eax
	movl	12(%rdx), %edx
	andl	$3, %edx
	leal	(%rdx,%rax,4), %eax
	movl	%eax, 20(%rcx)
	movl	$2, %esi
	callq	_ipmb_checksum
	movq	(%r13), %rdi
	movl	%eax, 24(%rdi)
	movl	16(%r14), %eax
	movl	%eax, 28(%rdi)
	shll	$2, %ebx
	orl	%r12d, %ebx
	movl	%ebx, 32(%rdi)
	movzbl	4(%r15), %eax
	movl	%eax, 36(%rdi)
	movq	8(%r15), %rdx
	testq	%rdx, %rdx
	jle	LBB0_2
## %bb.1:
	addq	$40, %rdi
	movl	16(%r15), %esi
	callq	_memcpy
	movq	8(%r15), %rdx
	movq	(%r13), %rdi
LBB0_2:
	leaq	10(%rdx), %rax
	movq	%rax, 8(%r13)
	addq	$28, %rdi
	addl	$3, %edx
	movl	%edx, %esi
	callq	_ipmb_checksum
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	movq	%rdx, 8(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r13)
	addq	$8, %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_lan_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_lan_msg
_format_lan_msg:                        ; @format_lan_msg
	.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	x22, x5
	mov	x23, x4
	mov	x19, x3
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IPMI_NETFN_APP_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPMI_NETFN_APP_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsl	w8, w8, #2
	ldr	x0, [x0]
	str	w8, [x0]
Lloh3:
	adrp	x8, _IPMI_SEND_MSG_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPMI_SEND_MSG_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #4]
	ldr	w8, [x2]
	str	w8, [x0, #8]
	ldr	w8, [x2, #4]
	str	w8, [x0, #12]
	ldr	w8, [x2, #8]
	str	w8, [x0, #16]!
	ldr	w8, [x1]
	ldr	w9, [x2, #12]
	bfi	w9, w8, #2, #30
	str	w9, [x0, #4]
	mov	w1, #2
	bl	_ipmb_checksum
	ldr	x8, [x20]
	str	w0, [x8, #24]
	ldr	w9, [x24, #16]
	orr	w10, w22, w23, lsl #2
	stp	w9, w10, [x8, #28]
	ldrb	w9, [x21, #4]
	str	w9, [x8, #36]
	ldr	x2, [x21, #8]
	cmp	x2, #1
	b.lt	LBB0_2
; %bb.1:
	add	x0, x8, #40
	ldr	w1, [x21, #16]
	bl	_memcpy
	ldr	x2, [x21, #8]
	ldr	x8, [x20]
LBB0_2:
	add	x9, x2, #10
	str	x9, [x20, #8]
	add	x0, x8, #28
	add	w1, w2, #3
	bl	_ipmb_checksum
	ldp	x8, x9, [x20]
	str	w0, [x8, x9, lsl #2]
	add	x8, x9, #1
	stp	x8, x19, [x20, #8]
	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
	.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_lan_msg
.subsections_via_symbols
