	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function applesmc_position_show
_applesmc_position_show:                ## @applesmc_position_show
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	_applesmc_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_SENSOR_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-28(%rbp), %rsi
	callq	_applesmc_read_motion_sensor
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_SENSOR_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-24(%rbp), %rsi
	callq	_applesmc_read_motion_sensor
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	movq	_applesmc_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_SENSOR_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-20(%rbp), %rsi
	callq	_applesmc_read_motion_sensor
	movl	%eax, %ebx
	movq	_applesmc_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %ecx
	movl	-24(%rbp), %r8d
	movl	-20(%rbp), %r9d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_snprintf
	movl	%eax, %ebx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_applesmc_lock,4,2              ## @applesmc_lock
	.comm	_SENSOR_X,4,2                   ## @SENSOR_X
	.comm	_SENSOR_Y,4,2                   ## @SENSOR_Y
	.comm	_SENSOR_Z,4,2                   ## @SENSOR_Z
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d,%d,%d)\n"

	.no_dead_strip	_applesmc_position_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function applesmc_position_show
_applesmc_position_show:                ; @applesmc_position_show
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
Lloh0:
	adrp	x0, _applesmc_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _applesmc_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _SENSOR_X@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SENSOR_X@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_applesmc_read_motion_sensor
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _SENSOR_Y@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SENSOR_Y@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_applesmc_read_motion_sensor
	mov	x20, x0
	cbz	w0, LBB0_4
LBB0_2:
Lloh8:
	adrp	x0, _applesmc_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _applesmc_lock@GOTPAGEOFF]
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
Lloh10:
	adrp	x8, _SENSOR_Z@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SENSOR_Z@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, sp, #4
	bl	_applesmc_read_motion_sensor
	mov	x20, x0
Lloh13:
	adrp	x0, _applesmc_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _applesmc_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	cbnz	w20, LBB0_3
; %bb.5:
Lloh15:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldp	w4, w3, [sp, #8]
	ldr	w5, [sp, #4]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snprintf
	mov	x20, x0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_applesmc_lock,4,2              ; @applesmc_lock
	.comm	_SENSOR_X,4,2                   ; @SENSOR_X
	.comm	_SENSOR_Y,4,2                   ; @SENSOR_Y
	.comm	_SENSOR_Z,4,2                   ; @SENSOR_Z
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d,%d,%d)\n"

	.no_dead_strip	_applesmc_position_show
.subsections_via_symbols
