	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hmc5843_read_raw
_hmc5843_read_raw:                      ## @hmc5843_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	callq	_iio_priv
	movq	%rax, %r12
	cmpq	$128, %rbx
	je	LBB0_4
## %bb.1:
	cmpq	$129, %rbx
	je	LBB0_6
## %bb.2:
	cmpq	$130, %rbx
	jne	LBB0_8
## %bb.3:
	movl	(%r13), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hmc5843_read_measurement       ## TAILCALL
LBB0_4:
	movl	8(%r12), %edi
	movq	_HMC5843_CONFIG_REG_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.5:
	movq	_HMC5843_RANGE_GAIN_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-44(%rbp), %eax
	shrq	%cl, %rax
	movl	%eax, -44(%rbp)
	movl	$0, (%r15)
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_NANO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_6:
	movl	8(%r12), %edi
	movq	_HMC5843_CONFIG_REG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	movq	_HMC5843_RATE_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-44(%rbp), %eax
	shrq	%cl, %rax
	movl	%eax, -44(%rbp)
	movq	(%r12), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r15)
	movl	4(%rax), %eax
	movl	%eax, (%r14)
	movq	_IIO_VAL_INT_PLUS_MICRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HMC5843_CONFIG_REG_B,4,2       ## @HMC5843_CONFIG_REG_B
	.comm	_HMC5843_RANGE_GAIN_OFFSET,4,2  ## @HMC5843_RANGE_GAIN_OFFSET
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ## @IIO_VAL_INT_PLUS_NANO
	.comm	_HMC5843_CONFIG_REG_A,4,2       ## @HMC5843_CONFIG_REG_A
	.comm	_HMC5843_RATE_OFFSET,4,2        ## @HMC5843_RATE_OFFSET
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ## @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hmc5843_read_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hmc5843_read_raw
_hmc5843_read_raw:                      ; @hmc5843_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	bl	_iio_priv
	mov	x21, x0
	cmp	x23, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x23, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	x23, #130
	b.ne	LBB0_8
; %bb.3:
	ldr	w1, [x22]
	mov	x0, x21
	mov	x2, x19
	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
	add	sp, sp, #80
	b	_hmc5843_read_measurement
LBB0_4:
	ldr	w0, [x21, #8]
Lloh0:
	adrp	x8, _HMC5843_CONFIG_REG_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HMC5843_CONFIG_REG_B@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_9
; %bb.5:
Lloh3:
	adrp	x8, _HMC5843_RANGE_GAIN_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HMC5843_RANGE_GAIN_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	lsr	x8, x9, x8
	str	w8, [sp, #12]
	str	wzr, [x19]
	ldr	x9, [x21]
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x20]
Lloh6:
	adrp	x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_NANO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_6:
	ldr	w0, [x21, #8]
Lloh9:
	adrp	x8, _HMC5843_CONFIG_REG_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HMC5843_CONFIG_REG_A@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_9
; %bb.7:
Lloh12:
	adrp	x8, _HMC5843_RATE_OFFSET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HMC5843_RATE_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	lsr	x8, x9, x8
	str	w8, [sp, #12]
	ldr	x9, [x21]
	ldr	x9, [x9, #8]
	ldr	x8, [x9, x8, lsl #3]
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w8, [x8, #4]
	str	w8, [x20]
Lloh15:
	adrp	x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IIO_VAL_INT_PLUS_MICRO@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_8:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HMC5843_CONFIG_REG_B,4,2       ; @HMC5843_CONFIG_REG_B
	.comm	_HMC5843_RANGE_GAIN_OFFSET,4,2  ; @HMC5843_RANGE_GAIN_OFFSET
	.comm	_IIO_VAL_INT_PLUS_NANO,4,2      ; @IIO_VAL_INT_PLUS_NANO
	.comm	_HMC5843_CONFIG_REG_A,4,2       ; @HMC5843_CONFIG_REG_A
	.comm	_HMC5843_RATE_OFFSET,4,2        ; @HMC5843_RATE_OFFSET
	.comm	_IIO_VAL_INT_PLUS_MICRO,4,2     ; @IIO_VAL_INT_PLUS_MICRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hmc5843_read_raw
.subsections_via_symbols
