	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_ut_create_mutex
_acpi_ut_create_mutex:                  ## @acpi_ut_create_mutex
	.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	%rdi, %rbx
	movq	_AE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ut_create_mutex@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_ACPI_FUNCTION_TRACE_U32
	movq	_ACPI_MAX_MUTEX@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jae	LBB0_2
## %bb.1:
	movq	_AE_BAD_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_return_ACPI_STATUS
LBB0_2:
	movq	_acpi_gbl_mutex_info@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	shlq	$4, %rbx
	cmpl	$0, 12(%rax,%rbx)
	jne	LBB0_4
## %bb.3:
	leaq	(%rax,%rbx), %rdi
	addq	$12, %rdi
	callq	_acpi_os_create_mutex
	movl	%eax, %r14d
	movq	_ACPI_MUTEX_NOT_ACQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx,%rbx)
	movq	$0, (%rcx,%rbx)
LBB0_4:
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_return_ACPI_STATUS             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_ut_create_mutex,4,2            ## @ut_create_mutex
	.comm	_ACPI_MAX_MUTEX,8,3             ## @ACPI_MAX_MUTEX
	.comm	_AE_BAD_PARAMETER,4,2           ## @AE_BAD_PARAMETER
	.comm	_acpi_gbl_mutex_info,8,3        ## @acpi_gbl_mutex_info
	.comm	_ACPI_MUTEX_NOT_ACQUIRED,4,2    ## @ACPI_MUTEX_NOT_ACQUIRED
	.no_dead_strip	_acpi_ut_create_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_ut_create_mutex
_acpi_ut_create_mutex:                  ; @acpi_ut_create_mutex
	.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, x0
Lloh0:
	adrp	x8, _AE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _ut_create_mutex@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ut_create_mutex@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ACPI_FUNCTION_TRACE_U32
Lloh6:
	adrp	x8, _ACPI_MAX_MUTEX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACPI_MAX_MUTEX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x19
	b.hs	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _AE_BAD_PARAMETER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_BAD_PARAMETER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_return_ACPI_STATUS
LBB0_2:
Lloh12:
	adrp	x21, _acpi_gbl_mutex_info@GOTPAGE
Lloh13:
	ldr	x21, [x21, _acpi_gbl_mutex_info@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x0, x8, x19, lsl #4
	ldr	w8, [x0, #12]!
	cbnz	w8, LBB0_4
; %bb.3:
	bl	_acpi_os_create_mutex
	mov	x20, x0
Lloh14:
	adrp	x8, _ACPI_MUTEX_NOT_ACQUIRED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACPI_MUTEX_NOT_ACQUIRED@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [x21]
	add	x9, x9, x19, lsl #4
	str	w8, [x9, #8]
	str	xzr, [x9]
LBB0_4:
	mov	x0, x20
	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	_return_ACPI_STATUS
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_ut_create_mutex,4,2            ; @ut_create_mutex
	.comm	_ACPI_MAX_MUTEX,8,3             ; @ACPI_MAX_MUTEX
	.comm	_AE_BAD_PARAMETER,4,2           ; @AE_BAD_PARAMETER
	.comm	_acpi_gbl_mutex_info,8,3        ; @acpi_gbl_mutex_info
	.comm	_ACPI_MUTEX_NOT_ACQUIRED,4,2    ; @ACPI_MUTEX_NOT_ACQUIRED
	.no_dead_strip	_acpi_ut_create_mutex
.subsections_via_symbols
