	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_subop_get_num_addr_cyc    ## -- Begin function nand_subop_get_num_addr_cyc
	.p2align	4, 0x90
_nand_subop_get_num_addr_cyc:           ## @nand_subop_get_num_addr_cyc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_nand_subop_instr_is_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%rbx), %rax
	movl	%r14d, %ecx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rax
	movq	_NAND_OP_ADDR_INSTR@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_WARN_ON
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_nand_subop_get_addr_start_off
	movl	(%rbx), %ecx
	decl	%ecx
	cmpl	%r14d, %ecx
	jne	LBB0_6
## %bb.5:
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	jne	LBB0_7
LBB0_6:
	movq	8(%rbx), %rcx
	movl	%r14d, %edx
	shlq	$4, %rdx
	movl	8(%rcx,%rdx), %ecx
LBB0_7:
	subl	%eax, %ecx
LBB0_8:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_OP_ADDR_INSTR,8,3         ## @NAND_OP_ADDR_INSTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nand_subop_get_num_addr_cyc    ; -- Begin function nand_subop_get_num_addr_cyc
	.p2align	2
_nand_subop_get_num_addr_cyc:           ; @nand_subop_get_num_addr_cyc
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_nand_subop_instr_is_valid
	cbz	w0, LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	mov	w9, w19
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
Lloh0:
	adrp	x9, _NAND_OP_ADDR_INSTR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_OP_ADDR_INSTR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	mov	w0, #1
	bl	_WARN_ON
	cbnz	x0, LBB0_2
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_nand_subop_get_addr_start_off
	ldr	w8, [x20]
	sub	w8, w8, #1
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.5:
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_7
LBB0_6:
	ldr	x8, [x20, #8]
	add	x8, x8, w19, uxtw #4
	ldr	w8, [x8, #8]
LBB0_7:
	sub	w0, w8, w0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_OP_ADDR_INSTR,8,3         ; @NAND_OP_ADDR_INSTR
.subsections_via_symbols
