	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_magn_read_xyz
_bmc150_magn_read_xyz:                  ## @bmc150_magn_read_xyz
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_AXIS_XYZR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%r15), %edi
	movq	_BMC150_MAGN_REG_X_L@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(,%rbx,4), %ecx
	movq	%r14, %rdx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	_AXIS_X@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r14,%rax,4), %edi
	callq	_le16_to_cpu
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	_BMC150_MAGN_SHIFT_XY_L@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	_AXIS_Y@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r14,%rax,4), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movl	(%rbx), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_AXIS_Z@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r14,%rax,4), %edi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	movq	_BMC150_MAGN_SHIFT_Z_L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_RHALL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r14,%rax,4), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movq	_BMC150_MAGN_SHIFT_RHALL_L@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %edi
	movq	_BMC150_MAGN_REG_TRIM_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	$4, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movl	%ebx, %ecx
	sarl	%cl, %r14d
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r12d
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r13d
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	sarl	%cl, %esi
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_bmc150_magn_compensate_x
	movq	_AXIS_X@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%rbx,%rcx,4)
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	callq	_bmc150_magn_compensate_y
	movq	_AXIS_Y@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rbx,%rcx,4)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_bmc150_magn_compensate_z
	movq	_AXIS_Z@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rbx,%rcx,4)
	xorl	%eax, %eax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AXIS_XYZR_MAX,4,2              ## @AXIS_XYZR_MAX
	.comm	_BMC150_MAGN_REG_X_L,4,2        ## @BMC150_MAGN_REG_X_L
	.comm	_AXIS_X,8,3                     ## @AXIS_X
	.comm	_BMC150_MAGN_SHIFT_XY_L,4,2     ## @BMC150_MAGN_SHIFT_XY_L
	.comm	_AXIS_Y,8,3                     ## @AXIS_Y
	.comm	_AXIS_Z,8,3                     ## @AXIS_Z
	.comm	_BMC150_MAGN_SHIFT_Z_L,4,2      ## @BMC150_MAGN_SHIFT_Z_L
	.comm	_RHALL,8,3                      ## @RHALL
	.comm	_BMC150_MAGN_SHIFT_RHALL_L,4,2  ## @BMC150_MAGN_SHIFT_RHALL_L
	.comm	_BMC150_MAGN_REG_TRIM_START,4,2 ## @BMC150_MAGN_REG_TRIM_START
	.no_dead_strip	_bmc150_magn_read_xyz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmc150_magn_read_xyz
_bmc150_magn_read_xyz:                  ; @bmc150_magn_read_xyz
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _AXIS_XYZR_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AXIS_XYZR_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w0, [x0]
Lloh8:
	adrp	x8, _BMC150_MAGN_REG_X_L@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BMC150_MAGN_REG_X_L@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	lsl	w3, w12, #2
	mov	x2, x22
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh11:
	adrp	x8, _AXIS_X@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AXIS_X@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w0, [x22, x8, lsl #2]
	bl	_le16_to_cpu
	mov	x21, x0
Lloh14:
	adrp	x24, _BMC150_MAGN_SHIFT_XY_L@GOTPAGE
Lloh15:
	ldr	x24, [x24, _BMC150_MAGN_SHIFT_XY_L@GOTPAGEOFF]
	ldr	w28, [x24]
Lloh16:
	adrp	x8, _AXIS_Y@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AXIS_Y@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	ldr	w0, [x22, x8, lsl #2]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w25, [x24]
Lloh19:
	adrp	x8, _AXIS_Z@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AXIS_Z@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w0, [x22, x8, lsl #2]
	bl	_le16_to_cpu
	mov	x24, x0
Lloh22:
	adrp	x8, _BMC150_MAGN_SHIFT_Z_L@GOTPAGE
Lloh23:
	ldr	x8, [x8, _BMC150_MAGN_SHIFT_Z_L@GOTPAGEOFF]
Lloh24:
	ldr	w26, [x8]
Lloh25:
	adrp	x8, _RHALL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RHALL@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	ldr	w0, [x22, x8, lsl #2]
	bl	_le16_to_cpu
	mov	x22, x0
Lloh28:
	adrp	x8, _BMC150_MAGN_SHIFT_RHALL_L@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BMC150_MAGN_SHIFT_RHALL_L@GOTPAGEOFF]
Lloh30:
	ldr	w27, [x8]
	ldr	w0, [x20]
Lloh31:
	adrp	x8, _BMC150_MAGN_REG_TRIM_START@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BMC150_MAGN_REG_TRIM_START@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	sub	x2, x29, #96
	mov	w3, #4
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_3
; %bb.2:
	asr	w20, w22, w27
	asr	w22, w24, w26
	asr	w23, w23, w25
	asr	w1, w21, w28
	sub	x0, x29, #96
	mov	x2, x20
	bl	_bmc150_magn_compensate_x
Lloh34:
	adrp	x8, _AXIS_X@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AXIS_X@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	sub	x0, x29, #96
	mov	x1, x23
	mov	x2, x20
	bl	_bmc150_magn_compensate_y
Lloh37:
	adrp	x8, _AXIS_Y@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AXIS_Y@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	w0, [x19, x8, lsl #2]
	sub	x0, x29, #96
	mov	x1, x22
	mov	x2, x20
	bl	_bmc150_magn_compensate_z
	mov	x8, x0
	mov	w0, #0
Lloh40:
	adrp	x9, _AXIS_Z@GOTPAGE
Lloh41:
	ldr	x9, [x9, _AXIS_Z@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	str	w8, [x19, x9, lsl #2]
LBB0_3:
	ldur	x8, [x29, #-88]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_AXIS_XYZR_MAX,4,2              ; @AXIS_XYZR_MAX
	.comm	_BMC150_MAGN_REG_X_L,4,2        ; @BMC150_MAGN_REG_X_L
	.comm	_AXIS_X,8,3                     ; @AXIS_X
	.comm	_BMC150_MAGN_SHIFT_XY_L,4,2     ; @BMC150_MAGN_SHIFT_XY_L
	.comm	_AXIS_Y,8,3                     ; @AXIS_Y
	.comm	_AXIS_Z,8,3                     ; @AXIS_Z
	.comm	_BMC150_MAGN_SHIFT_Z_L,4,2      ; @BMC150_MAGN_SHIFT_Z_L
	.comm	_RHALL,8,3                      ; @RHALL
	.comm	_BMC150_MAGN_SHIFT_RHALL_L,4,2  ; @BMC150_MAGN_SHIFT_RHALL_L
	.comm	_BMC150_MAGN_REG_TRIM_START,4,2 ; @BMC150_MAGN_REG_TRIM_START
	.no_dead_strip	_bmc150_magn_read_xyz
.subsections_via_symbols
