	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_cmd_out_size                ## -- Begin function nd_cmd_out_size
	.p2align	4, 0x90
_nd_cmd_out_size:                       ## @nd_cmd_out_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	%ecx, (%rdx)
	jle	LBB0_1
## %bb.2:
	movq	8(%rdx), %rax
	movslq	%ecx, %rdx
	movq	(%rax,%rdx,8), %rax
	movq	_UINT_MAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %rax
	jge	LBB0_3
LBB0_17:
	popq	%rbp
	retq
LBB0_1:
	movq	_UINT_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbp
	retq
LBB0_3:
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.4:
	cmpl	$1, %ecx
	jne	LBB0_7
## %bb.5:
	movq	_ND_CMD_GET_CONFIG_DATA@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	8(%r8), %rax
	popq	%rbp
	retq
LBB0_10:
	cmpl	$2, %ecx
	jne	LBB0_15
## %bb.11:
	movq	_ND_CMD_ARS_STATUS@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_15
## %bb.12:
	movq	8(%r9), %rax
	cmpq	$4, %rax
	jge	LBB0_14
## %bb.13:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	cmpl	$2, %ecx
	jne	LBB0_15
## %bb.8:
	movq	_ND_CMD_VENDOR@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_15
## %bb.9:
	movq	8(%r9), %rax
	popq	%rbp
	retq
LBB0_15:
	movq	_ND_CMD_CALL@GOTPCREL(%rip), %rcx
	movq	%rdx, %rax
	cmpl	%esi, (%rcx)
	jne	LBB0_17
## %bb.16:
	movq	(%r8), %rax
	popq	%rbp
	retq
LBB0_14:
	movq	16(%rbp), %rcx
	leaq	-4(%rax), %rdx
	addq	$-8, %rax
	cmpq	%rcx, %rdx
	cmoveq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT_MAX,8,3                   ## @UINT_MAX
	.comm	_ND_CMD_GET_CONFIG_DATA,4,2     ## @ND_CMD_GET_CONFIG_DATA
	.comm	_ND_CMD_VENDOR,4,2              ## @ND_CMD_VENDOR
	.comm	_ND_CMD_ARS_STATUS,4,2          ## @ND_CMD_ARS_STATUS
	.comm	_ND_CMD_CALL,4,2                ## @ND_CMD_CALL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nd_cmd_out_size                ; -- Begin function nd_cmd_out_size
	.p2align	2
_nd_cmd_out_size:                       ; @nd_cmd_out_size
	.cfi_startproc
; %bb.0:
	ldr	w9, [x2]
	cmp	w9, w3
	b.le	LBB0_3
; %bb.1:
	mov	x8, x0
	ldr	x9, [x2, #8]
	ldr	x0, [x9, w3, sxtw #3]
Lloh0:
	adrp	x9, _UINT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UINT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ge	LBB0_4
LBB0_2:
	ret
LBB0_3:
Lloh3:
	adrp	x8, _UINT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UINT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	ret
LBB0_4:
	cbz	x8, LBB0_8
; %bb.5:
	cmp	w3, #1
	b.ne	LBB0_11
; %bb.6:
Lloh6:
	adrp	x8, _ND_CMD_GET_CONFIG_DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ND_CMD_GET_CONFIG_DATA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_11
; %bb.7:
	ldr	x0, [x4, #8]
	ret
LBB0_8:
	cmp	w3, #2
	b.ne	LBB0_14
; %bb.9:
Lloh9:
	adrp	x8, _ND_CMD_ARS_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ND_CMD_ARS_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_14
; %bb.10:
	ldr	x8, [x5, #8]
	sub	x9, x8, #4
	sub	x10, x8, #8
	cmp	x9, x6
	csel	x9, x6, x10, eq
	cmp	x8, #4
	csel	x0, xzr, x9, lt
	ret
LBB0_11:
	cmp	w3, #2
	b.ne	LBB0_14
; %bb.12:
Lloh12:
	adrp	x8, _ND_CMD_VENDOR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ND_CMD_VENDOR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_14
; %bb.13:
	ldr	x0, [x5, #8]
	ret
LBB0_14:
Lloh15:
	adrp	x8, _ND_CMD_CALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ND_CMD_CALL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	x0, x9
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.15:
	ldr	x0, [x4]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT_MAX,8,3                   ; @UINT_MAX
	.comm	_ND_CMD_GET_CONFIG_DATA,4,2     ; @ND_CMD_GET_CONFIG_DATA
	.comm	_ND_CMD_VENDOR,4,2              ; @ND_CMD_VENDOR
	.comm	_ND_CMD_ARS_STATUS,4,2          ; @ND_CMD_ARS_STATUS
	.comm	_ND_CMD_CALL,4,2                ; @ND_CMD_CALL
.subsections_via_symbols
