	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpmc_omap_onenand_set_timings  ## -- Begin function gpmc_omap_onenand_set_timings
	.p2align	4, 0x90
_gpmc_omap_onenand_set_timings:         ## @gpmc_omap_onenand_set_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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movl	(%rdi), %edi
	leaq	-48(%rbp), %rsi
	callq	_gpmc_read_settings_dt
	movl	-44(%rbp), %ecx
	movl	%ecx, 8(%rbx)
	movl	-48(%rbp), %edx
	movl	%edx, 4(%rbx)
	movl	-40(%rbp), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	orl	%edx, %ecx
	je	LBB0_3
## %bb.1:
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_gpmc_omap_onenand_calc_sync_timings
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_gpmc_cs_program_settings
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movl	%r14d, %edi
	callq	_gpmc_cs_set_timings
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpmc_omap_onenand_set_timings  ; -- Begin function gpmc_omap_onenand_set_timings
	.p2align	2
_gpmc_omap_onenand_set_timings:         ; @gpmc_omap_onenand_set_timings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	ldr	w0, [x0]
	add	x1, sp, #8
	bl	_gpmc_read_settings_dt
	ldp	w9, w8, [sp, #8]
	stp	w9, w8, [x22, #4]
	ldr	w10, [sp, #16]
	str	w10, [x22]
	orr	w8, w8, w9
	cbz	w8, LBB0_3
; %bb.1:
	add	x0, sp, #24
	add	x1, sp, #8
	mov	x2, x21
	mov	x3, x20
	bl	_gpmc_omap_onenand_calc_sync_timings
	add	x1, sp, #8
	mov	x0, x19
	bl	_gpmc_cs_program_settings
	tbnz	w0, #31, LBB0_4
; %bb.2:
	add	x1, sp, #24
	add	x2, sp, #8
	mov	x0, x19
	bl	_gpmc_cs_set_timings
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
