	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st95hf_send_spi_reset_sequence
_st95hf_send_spi_reset_sequence:        ## @st95hf_send_spi_reset_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_ST95HF_COMMAND_RESET@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, -17(%rbp)
	movq	_ST95HF_RESET_CMD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-17(%rbp), %rsi
	callq	_st95hf_spi_send
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_3
LBB0_2:
	movl	$3000, %edi                     ## imm = 0xBB8
	movl	$4000, %esi                     ## imm = 0xFA0
	callq	_usleep_range
	movq	%r14, %rdi
	callq	_st95hf_send_st95enable_negativepulse
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST95HF_COMMAND_RESET,1,0       ## @ST95HF_COMMAND_RESET
	.comm	_ST95HF_RESET_CMD_LEN,4,2       ## @ST95HF_RESET_CMD_LEN
	.comm	_ASYNC,4,2                      ## @ASYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spi reset sequence cmd error = %d"

	.no_dead_strip	_st95hf_send_spi_reset_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st95hf_send_spi_reset_sequence
_st95hf_send_spi_reset_sequence:        ; @st95hf_send_spi_reset_sequence
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x8, _ST95HF_COMMAND_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST95HF_COMMAND_RESET@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [sp, #15]
Lloh2:
	adrp	x8, _ST95HF_RESET_CMD_LEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST95HF_RESET_CMD_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _ASYNC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ASYNC@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	add	x1, sp, #15
	bl	_st95hf_spi_send
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	mov	w0, #3000
	mov	w1, #4000
	bl	_usleep_range
	mov	x0, x20
	bl	_st95hf_send_st95enable_negativepulse
	mov	w0, #10000
	mov	w1, #20000
	bl	_usleep_range
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ST95HF_COMMAND_RESET,1,0       ; @ST95HF_COMMAND_RESET
	.comm	_ST95HF_RESET_CMD_LEN,4,2       ; @ST95HF_RESET_CMD_LEN
	.comm	_ASYNC,4,2                      ; @ASYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spi reset sequence cmd error = %d"

	.no_dead_strip	_st95hf_send_spi_reset_sequence
.subsections_via_symbols
