	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c_onenand_setup
_s3c_onenand_setup:                     ## @s3c_onenand_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	_onenand@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rdi, 24(%rax)
	movq	(%rax), %rcx
	movq	_TYPE_S3C6400@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.1:
	movq	_s3c6400_mem_addr@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	_TYPE_S3C6410@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movq	_s3c6410_mem_addr@GOTPCREL(%rip), %rcx
LBB0_2:
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_s3c64xx_cmd_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
LBB0_8:
	movq	_s3c_onenand_readw@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_s3c_onenand_writew@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_s3c_onenand_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_s3c_onenand_bbt_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_s3c_unlock_all@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_s3c_onenand_command@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_onenand_read_bufferram@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_onenand_write_bufferram@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_TYPE_S5PC110@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_7
## %bb.6:
	movq	_s5pc110_read_bufferram@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_s5pc110_chip_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	jmp	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_onenand,8,3                    ## @onenand
	.comm	_TYPE_S3C6400,8,3               ## @TYPE_S3C6400
	.comm	_s3c6400_mem_addr,4,2           ## @s3c6400_mem_addr
	.comm	_s3c64xx_cmd_map,8,3            ## @s3c64xx_cmd_map
	.comm	_TYPE_S3C6410,8,3               ## @TYPE_S3C6410
	.comm	_s3c6410_mem_addr,4,2           ## @s3c6410_mem_addr
	.comm	_TYPE_S5PC110,8,3               ## @TYPE_S5PC110
	.comm	_s5pc110_read_bufferram,4,2     ## @s5pc110_read_bufferram
	.comm	_s5pc110_chip_probe,4,2         ## @s5pc110_chip_probe
	.comm	_s3c_onenand_readw,4,2          ## @s3c_onenand_readw
	.comm	_s3c_onenand_writew,4,2         ## @s3c_onenand_writew
	.comm	_s3c_onenand_wait,4,2           ## @s3c_onenand_wait
	.comm	_s3c_onenand_bbt_wait,4,2       ## @s3c_onenand_bbt_wait
	.comm	_s3c_unlock_all,4,2             ## @s3c_unlock_all
	.comm	_s3c_onenand_command,4,2        ## @s3c_onenand_command
	.comm	_onenand_read_bufferram,4,2     ## @onenand_read_bufferram
	.comm	_onenand_write_bufferram,4,2    ## @onenand_write_bufferram
	.no_dead_strip	_s3c_onenand_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c_onenand_setup
_s3c_onenand_setup:                     ; @s3c_onenand_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _onenand@GOTPAGE
Lloh1:
	ldr	x8, [x8, _onenand@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x0, [x8, #24]
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _TYPE_S3C6400@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TYPE_S3C6400@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _s3c6400_mem_addr@GOTPAGE
Lloh7:
	ldr	x9, [x9, _s3c6400_mem_addr@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x10, _TYPE_S3C6410@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TYPE_S3C6410@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.3:
Lloh11:
	adrp	x9, _s3c6410_mem_addr@GOTPAGE
Lloh12:
	ldr	x9, [x9, _s3c6410_mem_addr@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	str	w9, [x8, #16]
Lloh13:
	adrp	x9, _s3c64xx_cmd_map@GOTPAGE
Lloh14:
	ldr	x9, [x9, _s3c64xx_cmd_map@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	str	x9, [x8, #8]
LBB0_5:
Lloh16:
	adrp	x8, _s3c_onenand_readw@GOTPAGE
Lloh17:
	ldr	x8, [x8, _s3c_onenand_readw@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _s3c_onenand_writew@GOTPAGE
Lloh20:
	ldr	x9, [x9, _s3c_onenand_writew@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
Lloh22:
	adrp	x8, _s3c_onenand_wait@GOTPAGE
Lloh23:
	ldr	x8, [x8, _s3c_onenand_wait@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _s3c_onenand_bbt_wait@GOTPAGE
Lloh26:
	ldr	x9, [x9, _s3c_onenand_bbt_wait@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh28:
	adrp	x8, _s3c_unlock_all@GOTPAGE
Lloh29:
	ldr	x8, [x8, _s3c_unlock_all@GOTPAGEOFF]
Lloh30:
	adrp	x9, _s3c_onenand_command@GOTPAGE
Lloh31:
	ldr	x9, [x9, _s3c_onenand_command@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
Lloh34:
	adrp	x8, _onenand_read_bufferram@GOTPAGE
Lloh35:
	ldr	x8, [x8, _onenand_read_bufferram@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	adrp	x9, _onenand_write_bufferram@GOTPAGE
Lloh38:
	ldr	x9, [x9, _onenand_write_bufferram@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh40:
	adrp	x8, _TYPE_S5PC110@GOTPAGE
Lloh41:
	ldr	x8, [x8, _TYPE_S5PC110@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
Lloh43:
	adrp	x8, _s5pc110_read_bufferram@GOTPAGE
Lloh44:
	ldr	x8, [x8, _s5pc110_read_bufferram@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh46:
	adrp	x8, _s5pc110_chip_probe@GOTPAGE
Lloh47:
	ldr	x8, [x8, _s5pc110_chip_probe@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	b	LBB0_6
LBB0_9:
	bl	_BUG
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh32
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_onenand,8,3                    ; @onenand
	.comm	_TYPE_S3C6400,8,3               ; @TYPE_S3C6400
	.comm	_s3c6400_mem_addr,4,2           ; @s3c6400_mem_addr
	.comm	_s3c64xx_cmd_map,8,3            ; @s3c64xx_cmd_map
	.comm	_TYPE_S3C6410,8,3               ; @TYPE_S3C6410
	.comm	_s3c6410_mem_addr,4,2           ; @s3c6410_mem_addr
	.comm	_TYPE_S5PC110,8,3               ; @TYPE_S5PC110
	.comm	_s5pc110_read_bufferram,4,2     ; @s5pc110_read_bufferram
	.comm	_s5pc110_chip_probe,4,2         ; @s5pc110_chip_probe
	.comm	_s3c_onenand_readw,4,2          ; @s3c_onenand_readw
	.comm	_s3c_onenand_writew,4,2         ; @s3c_onenand_writew
	.comm	_s3c_onenand_wait,4,2           ; @s3c_onenand_wait
	.comm	_s3c_onenand_bbt_wait,4,2       ; @s3c_onenand_bbt_wait
	.comm	_s3c_unlock_all,4,2             ; @s3c_unlock_all
	.comm	_s3c_onenand_command,4,2        ; @s3c_onenand_command
	.comm	_onenand_read_bufferram,4,2     ; @onenand_read_bufferram
	.comm	_onenand_write_bufferram,4,2    ; @onenand_write_bufferram
	.no_dead_strip	_s3c_onenand_setup
.subsections_via_symbols
