	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpa2326_fetch_raw_sample
_zpa2326_fetch_raw_sample:              ## @zpa2326_fetch_raw_sample
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_iio_priv
	movq	(%rax), %r12
	cmpl	$128, %ebx
	je	LBB0_7
## %bb.1:
	cmpl	$129, %ebx
	jne	LBB0_10
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_zpa2326_dbg
	movq	_ZPA2326_PRESS_OUT_XL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	$3, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_zpa2326_dbg
	movq	_ZPA2326_TEMP_OUT_L_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_4:
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_zpa2326_warn
	jmp	LBB0_11
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_5:
	movl	4(%r14), %eax
	movl	8(%r14), %ecx
	shll	$16, %ecx
	shll	$8, %eax
	orl	%ecx, %eax
	orl	%eax, (%r14)
	jmp	LBB0_6
LBB0_9:
	movq	%r14, %rdi
	callq	_le16_to_cpup
	movl	%eax, (%r14)
LBB0_6:
	movq	_IIO_VAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fetching raw pressure sample"

	.comm	_ZPA2326_PRESS_OUT_XL_REG,4,2   ## @ZPA2326_PRESS_OUT_XL_REG
L_.str.1:                               ## @.str.1
	.asciz	"failed to fetch pressure (%d)"

	.comm	_IIO_VAL_INT,4,2                ## @IIO_VAL_INT
L_.str.2:                               ## @.str.2
	.asciz	"fetching raw temperature sample"

	.comm	_ZPA2326_TEMP_OUT_L_REG,4,2     ## @ZPA2326_TEMP_OUT_L_REG
L_.str.3:                               ## @.str.3
	.asciz	"failed to fetch temperature (%d)"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_zpa2326_fetch_raw_sample
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpa2326_fetch_raw_sample
_zpa2326_fetch_raw_sample:              ; @zpa2326_fetch_raw_sample
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_iio_priv
	ldr	x21, [x0]
	cmp	w22, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w22, #129
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_zpa2326_dbg
Lloh2:
	adrp	x8, _ZPA2326_PRESS_OUT_XL_REG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZPA2326_PRESS_OUT_XL_REG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	mov	w3, #3
	bl	_regmap_bulk_read
	cbz	w0, LBB0_8
; %bb.3:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_zpa2326_dbg
Lloh9:
	adrp	x8, _ZPA2326_TEMP_OUT_L_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZPA2326_TEMP_OUT_L_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	mov	w3, #2
	bl	_regmap_bulk_read
	cbz	w0, LBB0_9
; %bb.5:
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x20
	mov	x2, x21
	bl	_zpa2326_warn
	b	LBB0_11
LBB0_7:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_8:
	ldp	w9, w8, [x19, #4]
	ldr	w10, [x19]
	lsl	w9, w9, #8
	orr	w8, w9, w8, lsl #16
	orr	w8, w8, w10
	str	w8, [x19]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_le16_to_cpup
	str	w0, [x19]
LBB0_10:
Lloh17:
	adrp	x8, _IIO_VAL_INT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IIO_VAL_INT@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x8]
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fetching raw pressure sample"

	.comm	_ZPA2326_PRESS_OUT_XL_REG,4,2   ; @ZPA2326_PRESS_OUT_XL_REG
l_.str.1:                               ; @.str.1
	.asciz	"failed to fetch pressure (%d)"

	.comm	_IIO_VAL_INT,4,2                ; @IIO_VAL_INT
l_.str.2:                               ; @.str.2
	.asciz	"fetching raw temperature sample"

	.comm	_ZPA2326_TEMP_OUT_L_REG,4,2     ; @ZPA2326_TEMP_OUT_L_REG
l_.str.3:                               ; @.str.3
	.asciz	"failed to fetch temperature (%d)"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_zpa2326_fetch_raw_sample
.subsections_via_symbols
