	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmc150_magn_read_raw
_bmc150_magn_read_raw:                  ## @bmc150_magn_read_raw
	.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	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_iio_priv
	movq	%rax, %r15
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_AXIS_XYZ_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	addq	$-131, %r12
	cmpq	$3, %r12
	ja	LBB0_14
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	movl	$625, (%rbx)                    ## imm = 0x271
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_3:
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_bmc150_magn_get_odr
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_iio_buffer_enabled
	testl	%eax, %eax
	je	LBB0_18
## %bb.6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_7:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_10
## %bb.8:
	movl	(%r15), %edi
	movq	_BMC150_MAGN_REG_REP_XY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_21
## %bb.9:
	movl	-60(%rbp), %edi
	callq	_BMC150_MAGN_REGVAL_TO_REPXY
	jmp	LBB0_13
LBB0_10:
	cmpl	$128, %eax
	jne	LBB0_14
## %bb.11:
	movl	(%r15), %edi
	movq	_BMC150_MAGN_REG_REP_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_21
## %bb.12:
	movl	-60(%rbp), %edi
	callq	_BMC150_MAGN_REGVAL_TO_REPZ
LBB0_13:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_4:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_16
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_25
## %bb.17:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r15, %r14
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_bmc150_magn_set_power_state
	testl	%eax, %eax
	js	LBB0_22
## %bb.19:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bmc150_magn_read_xyz
	testl	%eax, %eax
	js	LBB0_23
## %bb.20:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%r13,%rax,4), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bmc150_magn_set_power_state
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jns	LBB0_4
	jmp	LBB0_16
LBB0_21:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_22:
	movl	%eax, %ebx
	jmp	LBB0_24
LBB0_23:
	movl	%eax, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bmc150_magn_set_power_state
LBB0_24:
	movq	%r14, %rdi
	callq	_mutex_unlock
	jmp	LBB0_16
LBB0_25:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_AXIS_XYZ_MAX,4,2               ## @AXIS_XYZ_MAX
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_BMC150_MAGN_REG_REP_XY,4,2     ## @BMC150_MAGN_REG_REP_XY
	.comm	_BMC150_MAGN_REG_REP_Z,4,2      ## @BMC150_MAGN_REG_REP_Z
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bmc150_magn_read_raw
.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_raw
_bmc150_magn_read_raw:                  ; @bmc150_magn_read_raw
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x25, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	bl	_iio_priv
	mov	x20, x0
	mov	x26, sp
Lloh3:
	adrp	x8, _AXIS_XYZ_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AXIS_XYZ_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #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	x24, x9, x8
	mov	sp, x24
	sub	x8, x25, #131
	cmp	x8, #3
	b.hi	LBB0_13
; %bb.1:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	str	wzr, [x19]
	mov	w8, #625
	str	w8, [x21]
Lloh10:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
	b	LBB0_15
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_bmc150_magn_get_odr
Lloh13:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w21, w0, w8, lt
	b	LBB0_15
LBB0_4:
	mov	x0, x23
	bl	_iio_buffer_enabled
	cbz	w0, LBB0_17
; %bb.5:
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_6:
	ldr	w8, [x22, #8]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_9
; %bb.7:
	ldr	w0, [x20]
Lloh18:
	adrp	x8, _BMC150_MAGN_REG_REP_XY@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BMC150_MAGN_REG_REP_XY@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	sub	x2, x29, #76
	bl	_regmap_read
	tbnz	w0, #31, LBB0_20
; %bb.8:
	ldur	w0, [x29, #-76]
	bl	_BMC150_MAGN_REGVAL_TO_REPXY
	b	LBB0_12
LBB0_9:
	cmp	w8, #128
	b.ne	LBB0_13
; %bb.10:
	ldr	w0, [x20]
Lloh21:
	adrp	x8, _BMC150_MAGN_REG_REP_Z@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BMC150_MAGN_REG_REP_Z@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	sub	x2, x29, #76
	bl	_regmap_read
	tbnz	w0, #31, LBB0_20
; %bb.11:
	ldur	w0, [x29, #-76]
	bl	_BMC150_MAGN_REGVAL_TO_REPZ
LBB0_12:
	str	w0, [x19]
Lloh24:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh26:
	ldr	w21, [x8]
	b	LBB0_15
LBB0_13:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	sp, x26
	ldur	x8, [x29, #-72]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.16:
	mov	x0, x21
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_17:
	add	x23, x20, #4
	mov	x0, x23
	bl	_mutex_lock
	mov	x0, x20
	mov	w1, #1
	bl	_bmc150_magn_set_power_state
	tbnz	w0, #31, LBB0_21
; %bb.18:
	mov	x0, x20
	mov	x1, x24
	bl	_bmc150_magn_read_xyz
	tbnz	w0, #31, LBB0_22
; %bb.19:
	ldr	x8, [x22]
	ldr	w8, [x24, x8, lsl #2]
	str	w8, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_bmc150_magn_set_power_state
	mov	x19, x0
	mov	x0, x23
	bl	_mutex_unlock
Lloh32:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w19, #0
	csel	w21, w19, w8, lt
	b	LBB0_15
LBB0_20:
	mov	x21, x0
	b	LBB0_15
LBB0_21:
	mov	x21, x0
	b	LBB0_23
LBB0_22:
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	bl	_bmc150_magn_set_power_state
LBB0_23:
	mov	x0, x23
	bl	_mutex_unlock
	b	LBB0_15
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_AXIS_XYZ_MAX,4,2               ; @AXIS_XYZ_MAX
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_BMC150_MAGN_REG_REP_XY,4,2     ; @BMC150_MAGN_REG_REP_XY
	.comm	_BMC150_MAGN_REG_REP_Z,4,2      ; @BMC150_MAGN_REG_REP_Z
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bmc150_magn_read_raw
.subsections_via_symbols
