	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ca8210_reset_send
_ca8210_reset_send:                     ## @ca8210_reset_send
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	callq	_spi_get_drvdata
	movq	%rax, %r13
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_gpio_set_value
	leaq	4(%r13), %r12
	movq	%r12, %rdi
	callq	_reinit_completion
	movl	%r14d, %edi
	callq	_msleep
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_gpio_set_value
	movl	$0, (%r13)
	movq	_CA8210_SYNC_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_wait_for_completion_interruptible_timeout
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_crit
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CA8210_SYNC_TIMEOUT,4,2        ## @CA8210_SYNC_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fatal: No wakeup from ca8210 after reset!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Reset the device\n"

	.no_dead_strip	_ca8210_reset_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ca8210_reset_send
_ca8210_reset_send:                     ; @ca8210_reset_send
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0]
	bl	_spi_get_drvdata
	mov	x21, x0
	ldr	w0, [x23]
	mov	w1, #0
	bl	_gpio_set_value
	add	x22, x21, #4
	mov	x0, x22
	bl	_reinit_completion
	mov	x0, x20
	bl	_msleep
	ldr	w0, [x23]
	mov	w1, #1
	bl	_gpio_set_value
	str	wzr, [x21]
Lloh0:
	adrp	x8, _CA8210_SYNC_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CA8210_SYNC_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x22
	bl	_wait_for_completion_interruptible_timeout
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_crit
LBB0_2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CA8210_SYNC_TIMEOUT,4,2        ; @CA8210_SYNC_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fatal: No wakeup from ca8210 after reset!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Reset the device\n"

	.no_dead_strip	_ca8210_reset_send
.subsections_via_symbols
