	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_format_ipmi_msg
_acpi_format_ipmi_msg:                  ## @acpi_format_ipmi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_IPMI_OP_RGN_NETFN
	movl	%eax, 48(%rbx)
	movl	%r15d, %edi
	callq	_IPMI_OP_RGN_CMD
	movl	%eax, 44(%rbx)
	movl	32(%rbx), %edi
	movl	%edi, 40(%rbx)
	movl	4(%r14), %edx
	movl	%edx, 36(%rbx)
	movl	(%r14), %esi
	callq	_memcpy
	movq	_IPMI_SYSTEM_INTERFACE_ADDR_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_IPMI_BMC_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	16(%rbx), %rax
	movq	$0, (%rax)
	movq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	8(%r14), %rax
	incq	%rax
	movq	%rax, 8(%r14)
	movq	%rax, (%rbx)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPMI_SYSTEM_INTERFACE_ADDR_TYPE,4,2 ## @IPMI_SYSTEM_INTERFACE_ADDR_TYPE
	.comm	_IPMI_BMC_CHANNEL,4,2           ## @IPMI_BMC_CHANNEL
	.no_dead_strip	_acpi_format_ipmi_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_format_ipmi_msg
_acpi_format_ipmi_msg:                  ; @acpi_format_ipmi_msg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_IPMI_OP_RGN_NETFN
	str	w0, [x21, #48]
	mov	x0, x20
	bl	_IPMI_OP_RGN_CMD
	str	w0, [x21, #44]
	ldr	w0, [x21, #32]
	ldp	w1, w2, [x19]
	stp	w2, w0, [x21, #36]
	bl	_memcpy
Lloh0:
	adrp	x8, _IPMI_SYSTEM_INTERFACE_ADDR_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IPMI_SYSTEM_INTERFACE_ADDR_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IPMI_BMC_CHANNEL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IPMI_BMC_CHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #24]
	ldp	x19, x8, [x21, #8]
	str	xzr, [x8]
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	str	x8, [x21]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IPMI_SYSTEM_INTERFACE_ADDR_TYPE,4,2 ; @IPMI_SYSTEM_INTERFACE_ADDR_TYPE
	.comm	_IPMI_BMC_CHANNEL,4,2           ; @IPMI_BMC_CHANNEL
	.no_dead_strip	_acpi_format_ipmi_msg
.subsections_via_symbols
