	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_smc_timings
_set_smc_timings:                       ## @set_smc_timings
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r13d
	movq	_AT91_SMC_READMODE@GOTPCREL(%rip), %rax
	movq	_AT91_SMC_WRITEMODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	orq	(%rax), %rbx
	movq	_AT91_SMC_BAT_SELECT@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	testl	%r9d, %r9d
	je	LBB0_1
## %bb.2:
	movq	_AT91_SMC_EXNWMODE_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	orq	%rax, %rbx
	testq	%r8, %r8
	je	LBB0_5
## %bb.4:
	movq	%r8, %rdi
	callq	_AT91_SMC_TDF_
	orq	%rax, %rbx
LBB0_5:
	movl	%r13d, %edi
	callq	_AT91_SMC_MODE
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_at91_sys_write
	movl	%r13d, %edi
	callq	_AT91_SMC_SETUP
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_AT91_SMC_NWESETUP_
	movq	%rax, %r15
	xorl	%edi, %edi
	callq	_AT91_SMC_NCS_WRSETUP_
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_AT91_SMC_NRDSETUP_
	orq	%rax, %r15
	orq	%r14, %r15
	xorl	%edi, %edi
	callq	_AT91_SMC_NCS_RDSETUP_
	orq	%rax, %r15
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_at91_sys_write
	movl	%r13d, %edi
	callq	_AT91_SMC_PULSE
	movl	%eax, %r14d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_AT91_SMC_NWEPULSE_
	movq	%rax, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_AT91_SMC_NCS_WRPULSE_
	orq	%rax, %r15
	movq	%rbx, %rdi
	callq	_AT91_SMC_NRDPULSE_
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_AT91_SMC_NCS_RDPULSE_
	orq	%rax, %rbx
	orq	%r15, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_at91_sys_write
	movl	%r13d, %edi
	callq	_AT91_SMC_CYCLE
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_AT91_SMC_NWECYCLE_
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_AT91_SMC_NRDCYCLE_
	orq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_at91_sys_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AT91_SMC_READMODE,8,3          ## @AT91_SMC_READMODE
	.comm	_AT91_SMC_WRITEMODE,8,3         ## @AT91_SMC_WRITEMODE
	.comm	_AT91_SMC_BAT_SELECT,8,3        ## @AT91_SMC_BAT_SELECT
	.comm	_AT91_SMC_EXNWMODE_READY,8,3    ## @AT91_SMC_EXNWMODE_READY
	.no_dead_strip	_set_smc_timings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_smc_timings
_set_smc_timings:                       ; @set_smc_timings
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _AT91_SMC_READMODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91_SMC_READMODE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _AT91_SMC_WRITEMODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AT91_SMC_WRITEMODE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh6:
	adrp	x9, _AT91_SMC_BAT_SELECT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AT91_SMC_BAT_SELECT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh9:
	adrp	x9, _AT91_SMC_EXNWMODE_READY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AT91_SMC_EXNWMODE_READY@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	w5, #0
	csel	x9, xzr, x9, eq
	orr	x23, x8, x9
	cbz	x4, LBB0_2
; %bb.1:
	mov	x0, x4
	bl	_AT91_SMC_TDF_
	orr	x23, x0, x23
LBB0_2:
	mov	x0, x20
	bl	_AT91_SMC_MODE
	mov	x1, x23
	bl	_at91_sys_write
	mov	x0, x20
	bl	_AT91_SMC_SETUP
	mov	x23, x0
	mov	x0, x22
	bl	_AT91_SMC_NWESETUP_
	mov	x24, x0
	mov	w0, #0
	bl	_AT91_SMC_NCS_WRSETUP_
	orr	x24, x0, x24
	mov	x0, x22
	bl	_AT91_SMC_NRDSETUP_
	orr	x22, x24, x0
	mov	w0, #0
	bl	_AT91_SMC_NCS_RDSETUP_
	orr	x1, x22, x0
	mov	x0, x23
	bl	_at91_sys_write
	mov	x0, x20
	bl	_AT91_SMC_PULSE
	mov	x22, x0
	mov	x0, x21
	bl	_AT91_SMC_NWEPULSE_
	mov	x23, x0
	mov	x0, x19
	bl	_AT91_SMC_NCS_WRPULSE_
	orr	x23, x0, x23
	mov	x0, x21
	bl	_AT91_SMC_NRDPULSE_
	orr	x21, x23, x0
	mov	x0, x19
	bl	_AT91_SMC_NCS_RDPULSE_
	orr	x1, x21, x0
	mov	x0, x22
	bl	_at91_sys_write
	mov	x0, x20
	bl	_AT91_SMC_CYCLE
	mov	x20, x0
	mov	x0, x19
	bl	_AT91_SMC_NWECYCLE_
	mov	x21, x0
	mov	x0, x19
	bl	_AT91_SMC_NRDCYCLE_
	orr	x1, x0, x21
	mov	x0, x20
	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	_at91_sys_write
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AT91_SMC_READMODE,8,3          ; @AT91_SMC_READMODE
	.comm	_AT91_SMC_WRITEMODE,8,3         ; @AT91_SMC_WRITEMODE
	.comm	_AT91_SMC_BAT_SELECT,8,3        ; @AT91_SMC_BAT_SELECT
	.comm	_AT91_SMC_EXNWMODE_READY,8,3    ; @AT91_SMC_EXNWMODE_READY
	.no_dead_strip	_set_smc_timings
.subsections_via_symbols
