	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prepare_other_cmd
_prepare_other_cmd:                     ## @prepare_other_cmd
	.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	24(%rdi), %rax
	movq	(%rax), %rax
	movl	%esi, %ecx
	andl	$65280, %ecx                    ## imm = 0xFF00
	je	LBB0_2
## %bb.1:
	movq	_NDCB0_DBC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	orl	%esi, %ecx
	movl	%ecx, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	cmpl	%esi, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	$3, %edi
	jmp	LBB0_6
LBB0_4:
	cmpl	%esi, 4(%rax)
	jne	LBB0_7
## %bb.5:
	movl	$4, %edi
LBB0_6:
	callq	_NDCB0_CMD_TYPE
	orl	%eax, (%rbx)
	movl	$8, 4(%rbx)
	jmp	LBB0_11
LBB0_7:
	cmpl	%esi, 8(%rax)
	je	LBB0_10
## %bb.8:
	cmpl	%esi, 12(%rax)
	je	LBB0_10
## %bb.9:
	cmpl	%esi, 16(%rax)
	jne	LBB0_13
LBB0_10:
	movl	$5, %edi
	callq	_NDCB0_CMD_TYPE
	orl	%eax, (%rbx)
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_NDCB0_DBC,4,2                  ## @NDCB0_DBC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_prepare_other_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prepare_other_cmd
_prepare_other_cmd:                     ; @prepare_other_cmd
	.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, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _NDCB0_DBC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NDCB0_DBC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w1, #0xff00
	csel	w9, wzr, w9, eq
	orr	w9, w9, w1
	str	w9, [x0]
	stp	xzr, xzr, [x0, #8]
	ldr	w9, [x8]
	cmp	w9, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #3
	b	LBB0_4
LBB0_2:
	ldr	w9, [x8, #4]
	cmp	w9, w1
	b.ne	LBB0_5
; %bb.3:
	mov	w0, #4
LBB0_4:
	bl	_NDCB0_CMD_TYPE
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	orr	w8, w9, w8
	mov	w9, #8
	stp	w8, w9, [x19]
	b	LBB0_9
LBB0_5:
	ldr	w9, [x8, #8]
	cmp	w9, w1
	b.eq	LBB0_8
; %bb.6:
	ldr	w9, [x8, #12]
	cmp	w9, w1
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x8, #16]
	cmp	w8, w1
	b.ne	LBB0_10
LBB0_8:
	mov	w0, #5
	bl	_NDCB0_CMD_TYPE
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NDCB0_DBC,4,2                  ; @NDCB0_DBC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_prepare_other_cmd
.subsections_via_symbols
