	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function physical_Lock
_physical_Lock:                         ## @physical_Lock
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movl	$1, %r14d
	cmpb	$47, (%rax)
	jne	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PHYS_DIRECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	movl	16(%rbx), %edi
	callq	_ID0uu_lock
	movq	_UU_LOCK_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.3:
	movq	_UU_LOCK_INUSE@GOTPCREL(%rip), %rcx
	movq	_LogPHASE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	movl	24(%rbx), %r15d
	movq	8(%rbx), %rbx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r12d, %edi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_6
LBB0_5:
	movl	%eax, %edi
	callq	_uu_lockerr
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	%r12d, %edi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHYS_DIRECT,8,3                ## @PHYS_DIRECT
	.comm	_UU_LOCK_OK,4,2                 ## @UU_LOCK_OK
	.comm	_UU_LOCK_INUSE,4,2              ## @UU_LOCK_INUSE
	.comm	_LogPHASE,4,2                   ## @LogPHASE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s is in use\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %s is in use: uu_lock: %s\n"

	.no_dead_strip	_physical_Lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function physical_Lock
_physical_Lock:                         ; @physical_Lock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	ldr	x8, [x0, #8]
	ldrb	w8, [x8]
	cmp	w8, #47
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PHYS_DIRECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PHYS_DIRECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_ID0uu_lock
Lloh3:
	adrp	x8, _UU_LOCK_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UU_LOCK_OK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
LBB0_3:
	mov	w0, #1
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
Lloh6:
	adrp	x8, _UU_LOCK_INUSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UU_LOCK_INUSE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _LogPHASE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LogPHASE@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x9]
	ldr	w20, [x19, #24]
	ldr	x19, [x19, #8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.6:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	bl	_uu_lockerr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x21
	mov	x2, x20
	mov	x3, x19
	bl	_log_Printf
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PHYS_DIRECT,8,3                ; @PHYS_DIRECT
	.comm	_UU_LOCK_OK,4,2                 ; @UU_LOCK_OK
	.comm	_UU_LOCK_INUSE,4,2              ; @UU_LOCK_INUSE
	.comm	_LogPHASE,4,2                   ; @LogPHASE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s is in use\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %s is in use: uu_lock: %s\n"

	.no_dead_strip	_physical_Lock
.subsections_via_symbols
