	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bmp180_measure
_bmp180_measure:                        ## @bmp180_measure
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	16(%rbx), %rdi
	callq	_init_completion
LBB0_2:
	movl	8(%rbx), %edi
	movq	_BMP280_REG_CTRL_MEAS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_13
## %bb.3:
	cmpq	$0, 24(%rbx)
	je	LBB0_6
## %bb.4:
	leaq	16(%rbx), %r14
	movl	$100, %edi
	callq	_msecs_to_jiffies
	leaq	1(%rax), %rsi
	movq	%r14, %rdi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_9
LBB0_6:
	movq	_BMP180_MEAS_TEMP@GOTPCREL(%rip), %rax
	movl	$4500, %edi                     ## imm = 0x1194
	cmpq	%r14, (%rax)
	je	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	leaq	L___const.bmp180_measure.conversion_time_max(%rip), %rcx
	movl	(%rcx,%rax,4), %edi
LBB0_8:
	leal	1000(%rdi), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_usleep_range
LBB0_9:
	movl	8(%rbx), %edi
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	_BMP180_MEAS_SCO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -28(%rbp)
	je	LBB0_11
## %bb.12:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_11:
	xorl	%eax, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.bmp180_measure.conversion_time_max
L___const.bmp180_measure.conversion_time_max:
	.long	4500                            ## 0x1194
	.long	7500                            ## 0x1d4c
	.long	13500                           ## 0x34bc
	.long	25500                           ## 0x639c

	.comm	_BMP280_REG_CTRL_MEAS,4,2       ## @BMP280_REG_CTRL_MEAS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout waiting for completion\n"

	.comm	_BMP180_MEAS_TEMP,8,3           ## @BMP180_MEAS_TEMP
	.comm	_BMP180_MEAS_SCO,4,2            ## @BMP180_MEAS_SCO
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_bmp180_measure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bmp180_measure
_bmp180_measure:                        ; @bmp180_measure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x19, #16
	bl	_init_completion
LBB0_2:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x21, _BMP280_REG_CTRL_MEAS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BMP280_REG_CTRL_MEAS@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, x20
	bl	_regmap_write
	cbnz	w0, LBB0_14
; %bb.3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.4:
	add	x20, x19, #16
	mov	w0, #100
	bl	_msecs_to_jiffies
	add	x1, x0, #1
	mov	x0, x20
	bl	_wait_for_completion_timeout
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	w0, [x19, #12]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_10
LBB0_6:
Lloh4:
	adrp	x8, _BMP180_MEAS_TEMP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BMP180_MEAS_TEMP@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #4500
	b	LBB0_9
LBB0_8:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, l___const.bmp180_measure.conversion_time_max@PAGE
Lloh8:
	add	x9, x9, l___const.bmp180_measure.conversion_time_max@PAGEOFF
	ldr	w0, [x9, x8, lsl #2]
LBB0_9:
	add	w1, w0, #1000
	bl	_usleep_range
LBB0_10:
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_14
; %bb.11:
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _BMP180_MEAS_SCO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BMP180_MEAS_SCO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.bmp180_measure.conversion_time_max
l___const.bmp180_measure.conversion_time_max:
	.long	4500                            ; 0x1194
	.long	7500                            ; 0x1d4c
	.long	13500                           ; 0x34bc
	.long	25500                           ; 0x639c

	.comm	_BMP280_REG_CTRL_MEAS,4,2       ; @BMP280_REG_CTRL_MEAS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout waiting for completion\n"

	.comm	_BMP180_MEAS_TEMP,8,3           ; @BMP180_MEAS_TEMP
	.comm	_BMP180_MEAS_SCO,4,2            ; @BMP180_MEAS_SCO
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_bmp180_measure
.subsections_via_symbols
