	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toshiba_iio_accel_get_axis
_toshiba_iio_accel_get_axis:            ## @toshiba_iio_accel_get_axis
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_toshiba_acpi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-12(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	callq	_toshiba_accelerometer_get
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	cmpl	$128, %ebx
	je	LBB0_6
## %bb.2:
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	$130, %ebx
	jne	LBB0_9
## %bb.4:
	movl	-12(%rbp), %ecx
	jmp	LBB0_7
LBB0_6:
	movl	-16(%rbp), %ecx
LBB0_7:
	movq	_HCI_ACCEL_DIRECTION_MASK@GOTPCREL(%rip), %rdx
	movq	_HCI_ACCEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%ecx, %esi
	movl	%esi, %eax
	negl	%eax
	testl	%ecx, (%rdx)
	jmp	LBB0_8
LBB0_5:
	movl	-12(%rbp), %edx
	movq	_HCI_MISC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %edx
	movq	_HCI_ACCEL_DIRECTION_MASK@GOTPCREL(%rip), %rcx
	movq	_HCI_ACCEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	%edx, %esi
	movl	%esi, %eax
	negl	%eax
	testl	%edx, (%rcx)
LBB0_8:
	cmovel	%esi, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_toshiba_acpi,4,2               ## @toshiba_acpi
	.comm	_HCI_ACCEL_DIRECTION_MASK,4,2   ## @HCI_ACCEL_DIRECTION_MASK
	.comm	_HCI_ACCEL_MASK,4,2             ## @HCI_ACCEL_MASK
	.comm	_HCI_MISC_SHIFT,4,2             ## @HCI_MISC_SHIFT
	.no_dead_strip	_toshiba_iio_accel_get_axis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toshiba_iio_accel_get_axis
_toshiba_iio_accel_get_axis:            ; @toshiba_iio_accel_get_axis
	.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, x0
Lloh0:
	adrp	x8, _toshiba_acpi@GOTPAGE
Lloh1:
	ldr	x8, [x8, _toshiba_acpi@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_toshiba_accelerometer_get
	tbnz	w0, #31, LBB0_9
; %bb.1:
	cmp	w19, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w19, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w19, #130
	b.ne	LBB0_9
; %bb.4:
	ldr	w8, [sp, #12]
	b	LBB0_6
LBB0_5:
	ldr	w8, [sp, #8]
LBB0_6:
Lloh3:
	adrp	x9, _HCI_ACCEL_DIRECTION_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HCI_ACCEL_DIRECTION_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _HCI_ACCEL_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HCI_ACCEL_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w10, w10, w8
	tst	w9, w8
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x8, _HCI_MISC_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCI_MISC_SHIFT@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh11:
	ldr	w8, [x8]
	asr	w8, w9, w8
Lloh12:
	adrp	x9, _HCI_ACCEL_DIRECTION_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _HCI_ACCEL_DIRECTION_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _HCI_ACCEL_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _HCI_ACCEL_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	and	w10, w10, w8
	tst	w8, w9
LBB0_8:
	cneg	w0, w10, ne
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_toshiba_acpi,4,2               ; @toshiba_acpi
	.comm	_HCI_ACCEL_DIRECTION_MASK,4,2   ; @HCI_ACCEL_DIRECTION_MASK
	.comm	_HCI_ACCEL_MASK,4,2             ; @HCI_ACCEL_MASK
	.comm	_HCI_MISC_SHIFT,4,2             ; @HCI_MISC_SHIFT
	.no_dead_strip	_toshiba_iio_accel_get_axis
.subsections_via_symbols
