	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ms5611_read_prom
_ms5611_read_prom:                      ## @ms5611_read_prom
	.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	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %r15
	movq	_MS5611_PROM_WORDS_NB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_5
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax), %rdx
	addq	%r13, %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	*(%r15)
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_MS5611_PROM_WORDS_NB@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	$4, %r13
	cmpq	%rsi, %rbx
	jl	LBB0_2
LBB0_5:
	movq	8(%r15), %rax
	movq	(%rax), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_ms5611_prom_is_valid
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MS5611_PROM_WORDS_NB,4,2       ## @MS5611_PROM_WORDS_NB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read prom at %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"PROM integrity check failed\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_ms5611_read_prom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ms5611_read_prom
_ms5611_read_prom:                      ; @ms5611_read_prom
	.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	x19, x0
	bl	_iio_priv
	mov	x20, x0
Lloh0:
	adrp	x23, _MS5611_PROM_WORDS_NB@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MS5611_PROM_WORDS_NB@GOTPAGEOFF]
	ldr	w1, [x23]
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x24, #0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x20]
	ldr	x9, [x9]
	add	x2, x9, x24
	mov	x0, x19
	mov	x1, x21
	blr	x8
	tbnz	w0, #31, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	ldrsw	x1, [x23]
	add	x24, x24, #4
	cmp	x21, x1
	b.lt	LBB0_2
LBB0_4:
	ldr	x8, [x20, #8]
	ldr	x0, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ms5611_prom_is_valid
	cbz	w0, LBB0_7
; %bb.5:
	mov	w22, #0
	b	LBB0_8
LBB0_6:
	mov	x22, x0
	str	x21, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MS5611_PROM_WORDS_NB,4,2       ; @MS5611_PROM_WORDS_NB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read prom at %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"PROM integrity check failed\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_ms5611_read_prom
.subsections_via_symbols
