	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function neon_cmode_for_logic_imm
_neon_cmode_for_logic_imm:              ## @neon_cmode_for_logic_imm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %ecx
	shll	$8, %ecx
	xorl	%eax, %eax
	cmpl	$8, %edx
	cmovel	%ecx, %eax
	orl	%edi, %eax
	cmpl	$32, %edx
	jl	LBB0_10
## %bb.1:
	cmpl	$255, %eax
	ja	LBB0_3
## %bb.2:
	movl	%eax, (%rsi)
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_3:
	testl	$-65281, %eax                   ## imm = 0xFFFF00FF
	jne	LBB0_5
## %bb.4:
	shrl	$8, %eax
	movl	%eax, (%rsi)
	movl	$3, %eax
	popq	%rbp
	retq
LBB0_5:
	testl	$-16711681, %eax                ## imm = 0xFF00FFFF
	jne	LBB0_7
## %bb.6:
	shrl	$16, %eax
	movl	%eax, (%rsi)
	movl	$5, %eax
	popq	%rbp
	retq
LBB0_7:
	testl	$16777215, %eax                 ## imm = 0xFFFFFF
	jne	LBB0_9
## %bb.8:
	shrl	$24, %eax
	movl	%eax, (%rsi)
	movl	$7, %eax
	popq	%rbp
	retq
LBB0_9:
	movzwl	%ax, %ecx
	shrl	$16, %eax
	cmpl	%eax, %ecx
	movl	%ecx, %eax
	jne	LBB0_14
LBB0_10:
	cmpl	$255, %eax
	ja	LBB0_12
## %bb.11:
	movl	%eax, (%rsi)
	movl	$9, %eax
	popq	%rbp
	retq
LBB0_12:
	testl	$-65281, %eax                   ## imm = 0xFFFF00FF
	jne	LBB0_14
## %bb.13:
	shrl	$8, %eax
	movl	%eax, (%rsi)
	movl	$11, %eax
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_first_error
	movq	_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"immediate value out of range"

	.comm	_FAIL,4,2                       ## @FAIL
	.no_dead_strip	_neon_cmode_for_logic_imm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function neon_cmode_for_logic_imm
_neon_cmode_for_logic_imm:              ; @neon_cmode_for_logic_imm
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	lsl	w8, w0, #8
	cmp	w2, #8
	csel	w8, w8, wzr, eq
	orr	w8, w8, w0
	cmp	w2, #32
	b.lt	LBB0_10
; %bb.1:
	cmp	w8, #255
	b.hi	LBB0_3
; %bb.2:
	str	w8, [x1]
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	tst	w8, #0xffff00ff
	b.ne	LBB0_5
; %bb.4:
	lsr	w8, w8, #8
	str	w8, [x1]
	mov	w0, #3
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	tst	w8, #0xff00ffff
	b.ne	LBB0_7
; %bb.6:
	lsr	w8, w8, #16
	str	w8, [x1]
	mov	w0, #5
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	tst	w8, #0xffffff
	b.ne	LBB0_9
; %bb.8:
	lsr	w8, w8, #24
	str	w8, [x1]
	mov	w0, #7
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_9:
	and	w9, w8, #0xffff
	cmp	w9, w8, lsr #16
	mov	x8, x9
	b.ne	LBB0_14
LBB0_10:
	cmp	w8, #255
	b.hi	LBB0_12
; %bb.11:
	str	w8, [x1]
	mov	w0, #9
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_12:
	tst	w8, #0xffff00ff
	b.ne	LBB0_14
; %bb.13:
	lsr	w8, w8, #8
	str	w8, [x1]
	mov	w0, #11
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_first_error
Lloh2:
	adrp	x8, _FAIL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FAIL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"immediate value out of range"

	.comm	_FAIL,4,2                       ; @FAIL
	.no_dead_strip	_neon_cmode_for_logic_imm
.subsections_via_symbols
