	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_cmd_ctrl
_s5p_cmd_ctrl:                          ## @s5p_cmd_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NAND_CMD_NONE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_1
## %bb.5:
	popq	%rbp
	retq
LBB0_1:
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_NAND_CLE@GOTPCREL(%rip), %rax
	andl	(%rax), %edx
	jne	LBB0_2
## %bb.3:
	movq	_S5P_NFADDR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_S5P_NFCMD@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	addq	(%rcx), %rax
	movl	%esi, %edi
	movq	%rax, %rsi
	popq	%rbp
	jmp	_writeb                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_NONE,4,2              ## @NAND_CMD_NONE
	.comm	_NAND_CLE,4,2                   ## @NAND_CLE
	.comm	_S5P_NFCMD,8,3                  ## @S5P_NFCMD
	.comm	_S5P_NFADDR,8,3                 ## @S5P_NFADDR
	.no_dead_strip	_s5p_cmd_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_cmd_ctrl
_s5p_cmd_ctrl:                          ; @s5p_cmd_ctrl
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NAND_CMD_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_CMD_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ret
LBB0_2:
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _NAND_CLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAND_CLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	x8, [x8]
Lloh6:
	adrp	x10, _S5P_NFADDR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _S5P_NFADDR@GOTPAGEOFF]
Lloh8:
	adrp	x11, _S5P_NFCMD@GOTPAGE
Lloh9:
	ldr	x11, [x11, _S5P_NFCMD@GOTPAGEOFF]
	tst	w9, w2
	csel	x9, x10, x11, eq
	ldr	x9, [x9]
	add	x8, x9, x8
	mov	x0, x1
	mov	x1, x8
	b	_writeb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_NONE,4,2              ; @NAND_CMD_NONE
	.comm	_NAND_CLE,4,2                   ; @NAND_CLE
	.comm	_S5P_NFCMD,8,3                  ; @S5P_NFCMD
	.comm	_S5P_NFADDR,8,3                 ; @S5P_NFADDR
	.no_dead_strip	_s5p_cmd_ctrl
.subsections_via_symbols
