	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st95hf_por_sequence
_st95hf_por_sequence:                   ## @st95hf_por_sequence
	.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, %r15
	callq	_st95hf_send_st95enable_negativepulse
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movq	%r15, %rdi
	callq	_st95hf_echo_command
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_dev_dbg
	xorl	%r14d, %r14d
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_st95hf_send_spi_reset_sequence
	movl	$50000, %edi                    ## imm = 0xC350
	movl	$51000, %esi                    ## imm = 0xC738
	callq	_usleep_range
	movq	%r15, %rdi
	callq	_st95hf_echo_command
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	$2, %ecx
	callq	_dev_dbg
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	callq	_st95hf_send_st95enable_negativepulse
	movl	$50000, %edi                    ## imm = 0xC350
	movl	$51000, %esi                    ## imm = 0xC738
	callq	_usleep_range
	movq	%r15, %rdi
	callq	_st95hf_echo_command
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	movl	$3, %ecx
	callq	_dev_dbg
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_st95hf_send_spi_reset_sequence
	movl	$50000, %edi                    ## imm = 0xC350
	movl	$51000, %esi                    ## imm = 0xC738
	callq	_usleep_range
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"response from echo function = 0x%x, attempt = %d\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_st95hf_por_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st95hf_por_sequence
_st95hf_por_sequence:                   ; @st95hf_por_sequence
	.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
	bl	_st95hf_send_st95enable_negativepulse
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
	mov	x0, x19
	bl	_st95hf_echo_command
	mov	x20, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	w3, #1
	bl	_dev_dbg
	cbz	w20, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_st95hf_send_spi_reset_sequence
	mov	w0, #50000
	mov	w1, #51000
	bl	_usleep_range
	mov	x0, x19
	bl	_st95hf_echo_command
	mov	x20, x0
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	w3, #2
	bl	_dev_dbg
	cbz	w20, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_st95hf_send_st95enable_negativepulse
	mov	w0, #50000
	mov	w1, #51000
	bl	_usleep_range
	mov	x0, x19
	bl	_st95hf_echo_command
	mov	x20, x0
	ldr	x0, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	w3, #3
	bl	_dev_dbg
	cbz	w20, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_st95hf_send_spi_reset_sequence
	mov	w0, #50000
	mov	w1, #51000
	bl	_usleep_range
Lloh6:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"response from echo function = 0x%x, attempt = %d\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_st95hf_por_sequence
.subsections_via_symbols
