	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function navpoint_up
_navpoint_up:                           ## @navpoint_up
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movl	(%r12), %edi
	callq	_clk_prepare_enable
	movq	_SSCR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_sscr1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_pxa_ssp_write_reg
	movq	_SSSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_sssr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_pxa_ssp_write_reg
	movq	_SSTO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_pxa_ssp_write_reg
	movq	_SSCR0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_sscr0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_pxa_ssp_write_reg
	movl	$-100, %ebx
	movq	_SSSR_CSS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_pxa_ssp_read_reg
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_msleep
	incl	%ebx
	jne	LBB0_1
## %bb.3:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movl	(%r14), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%r14), %edi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpio_set_value                 ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSCR1,4,2                      ## @SSCR1
	.comm	_sscr1,4,2                      ## @sscr1
	.comm	_SSSR,4,2                       ## @SSSR
	.comm	_sssr,4,2                       ## @sssr
	.comm	_SSTO,4,2                       ## @SSTO
	.comm	_SSCR0,4,2                      ## @SSCR0
	.comm	_sscr0,4,2                      ## @sscr0
	.comm	_SSSR_CSS,4,2                   ## @SSSR_CSS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"timeout waiting for SSSR[CSS] to clear\n"

	.no_dead_strip	_navpoint_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function navpoint_up
_navpoint_up:                           ; @navpoint_up
	.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	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x20]
	bl	_clk_prepare_enable
Lloh0:
	adrp	x8, _SSCR1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSCR1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _sscr1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sscr1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_pxa_ssp_write_reg
Lloh6:
	adrp	x21, _SSSR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SSSR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh8:
	adrp	x8, _sssr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sssr@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_pxa_ssp_write_reg
Lloh11:
	adrp	x8, _SSTO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SSTO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_pxa_ssp_write_reg
Lloh14:
	adrp	x8, _SSCR0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SSCR0@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _sscr0@GOTPAGE
Lloh18:
	ldr	x8, [x8, _sscr0@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_pxa_ssp_write_reg
	mov	w22, #-100
Lloh20:
	adrp	x23, _SSSR_CSS@GOTPAGE
Lloh21:
	ldr	x23, [x23, _SSSR_CSS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	mov	x0, x20
	bl	_pxa_ssp_read_reg
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_msleep
	adds	w22, w22, #1
	b.lo	LBB0_1
; %bb.3:
	ldr	w0, [x19, #4]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
	ldr	w0, [x19]
	bl	_gpio_is_valid
	cbz	x0, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	mov	w1, #1
	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	_gpio_set_value
LBB0_6:
	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
	ret
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SSCR1,4,2                      ; @SSCR1
	.comm	_sscr1,4,2                      ; @sscr1
	.comm	_SSSR,4,2                       ; @SSSR
	.comm	_sssr,4,2                       ; @sssr
	.comm	_SSTO,4,2                       ; @SSTO
	.comm	_SSCR0,4,2                      ; @SSCR0
	.comm	_sscr0,4,2                      ; @sscr0
	.comm	_SSSR_CSS,4,2                   ; @SSSR_CSS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"timeout waiting for SSSR[CSS] to clear\n"

	.no_dead_strip	_navpoint_up
.subsections_via_symbols
