	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_select_chip
_nand_select_chip:                      ## @nand_select_chip
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$-1, %esi
	jne	LBB0_2
## %bb.4:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_NAND_CMD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_NAND_CTRL_CHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_3:
	retq
LBB0_2:
	xorl	%eax, %eax
	jmp	_BUG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_NONE,4,2              ## @NAND_CMD_NONE
	.comm	_NAND_CTRL_CHANGE,4,2           ## @NAND_CTRL_CHANGE
	.no_dead_strip	_nand_select_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_select_chip
_nand_select_chip:                      ; @nand_select_chip
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_3
; %bb.1:
	cmn	w1, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [x0]
	ldr	x3, [x8]
Lloh0:
	adrp	x8, _NAND_CMD_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_CMD_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _NAND_CTRL_CHANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAND_CTRL_CHANGE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	br	x3
LBB0_3:
	ret
LBB0_4:
	b	_BUG
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_NONE,4,2              ; @NAND_CMD_NONE
	.comm	_NAND_CTRL_CHANGE,4,2           ; @NAND_CTRL_CHANGE
	.no_dead_strip	_nand_select_chip
.subsections_via_symbols
