	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hih6130_update_measurements
_hih6130_update_measurements:           ## @hih6130_update_measurements
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	32(%rax), %r15
	movl	$4, -80(%rbp)
	leaq	-84(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	8(%r15), %eax
	movl	%eax, -60(%rbp)
	leaq	4(%r12), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r12), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_1
LBB0_2:
	movb	$0, -84(%rbp)
	movl	24(%r12), %edx
	leaq	-84(%rbp), %rsi
	movq	%r15, %rdi
	callq	_i2c_master_send
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	$40, %edi
	callq	_msleep
	movl	4(%r15), %edi
	leaq	-80(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movzbl	-84(%rbp), %eax
	testb	$-64, %al
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
	cmpl	$0, (%r12)
	jne	LBB0_8
	jmp	LBB0_2
LBB0_3:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_7:
	shll	$8, %eax
	movzbl	-83(%rbp), %edi
	orl	%eax, %edi
	callq	_hih6130_rh_ticks_to_per_cent_mille
	movl	%eax, 20(%r12)
	movzwl	-82(%rbp), %eax
	rolw	$8, %ax
	movzwl	%ax, %edi
	callq	_hih6130_temp_ticks_to_millicelsius
	movl	%eax, 16(%r12)
	movq	(%r13), %rax
	movq	%rax, 8(%r12)
	movl	$1, (%r12)
LBB0_8:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error while reading measurement result\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_hih6130_update_measurements
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hih6130_update_measurements
_hih6130_update_measurements:           ; @hih6130_update_measurements
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x21, [x0, #32]
	mov	w8, #4
	str	w8, [sp, #16]
	add	x8, sp, #12
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
	str	x8, [sp, #24]
Lloh5:
	ldr	w8, [x9]
	str	w8, [sp, #32]
	ldr	w8, [x21, #8]
	str	w8, [sp, #36]
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
Lloh6:
	adrp	x23, _jiffies@GOTPAGE
Lloh7:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x0, [x23]
	ldr	x8, [x20, #8]
Lloh8:
	adrp	x9, _HZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbz	x0, LBB0_5
LBB0_1:
	strb	wzr, [sp, #12]
	ldr	w2, [x20, #24]
	add	x1, sp, #12
	mov	x0, x21
	bl	_i2c_master_send
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	w0, #40
	bl	_msleep
	ldr	w0, [x21, #4]
	add	x1, sp, #16
	mov	w2, #1
	bl	_i2c_transfer
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:
	ldrb	w8, [sp, #12]
	tst	w8, #0xc0
	b.eq	LBB0_8
; %bb.4:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_5:
	ldr	w8, [x20]
	cbz	w8, LBB0_1
; %bb.6:
	mov	w22, #0
	b	LBB0_9
LBB0_7:
	mov	x22, x0
	b	LBB0_9
LBB0_8:
	ldrb	w0, [sp, #13]
	bfi	w0, w8, #8, #8
	bl	_hih6130_rh_ticks_to_per_cent_mille
	str	w0, [x20, #20]
	ldrh	w8, [sp, #14]
	rev16	w0, w8
	bl	_hih6130_temp_ticks_to_millicelsius
	str	w0, [x20, #16]
	ldr	x8, [x23]
	str	x8, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
LBB0_9:
	mov	x0, x19
	bl	_mutex_unlock
	cmp	w22, #0
	csel	w0, w22, wzr, lt
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error while reading measurement result\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_hih6130_update_measurements
.subsections_via_symbols
