	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sht15_wait_for_response
_sht15_wait_for_response:               ## @sht15_wait_for_response
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movl	4(%rax), %edi
	callq	_gpio_direction_input
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_gpio_set_value
	movq	_SHT15_TSCKH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ndelay
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_gpio_get_value
	movq	%rax, %r15
	movq	(%rbx), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_gpio_set_value
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_sht15_connection_reset
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_SHT15_TSCKL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ndelay
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SHT15_TSCKH,4,2                ## @SHT15_TSCKH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Command not acknowledged\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_SHT15_TSCKL,4,2                ## @SHT15_TSCKL
	.no_dead_strip	_sht15_wait_for_response
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sht15_wait_for_response
_sht15_wait_for_response:               ; @sht15_wait_for_response
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #4]
	bl	_gpio_direction_input
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_gpio_set_value
Lloh0:
	adrp	x8, _SHT15_TSCKH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SHT15_TSCKH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ndelay
	ldr	x8, [x19]
	ldr	w0, [x8, #4]
	bl	_gpio_get_value
	mov	x20, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	mov	w1, #0
	bl	_gpio_set_value
	cbz	x20, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_sht15_connection_reset
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _SHT15_TSCKL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SHT15_TSCKL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_ndelay
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SHT15_TSCKH,4,2                ; @SHT15_TSCKH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Command not acknowledged\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_SHT15_TSCKL,4,2                ; @SHT15_TSCKL
	.no_dead_strip	_sht15_wait_for_response
.subsections_via_symbols
