	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_bit_op
_decode_bit_op:                         ## @decode_bit_op
	.cfi_startproc
## %bb.0:
	movl	$-1, %eax
	cmpl	$4, %esi
	jl	LBB0_2
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	callq	_r_read_le16
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_r_read_at_le16
	movl	%eax, %r15d
	movl	4(%r14), %edi
	movq	_V850_INSTR_MAXLEN@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	decq	%rsi
	movq	_bit_instrs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	sarl	$14, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rcx
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_snprintf
	movl	%ebx, %edi
	callq	_get_reg1
	movl	(%r14), %edi
	movq	(%r12), %rsi
	decq	%rsi
	shrl	$11, %ebx
	andl	$7, %ebx
	leaq	L_.str.1(%rip), %rdx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_snprintf
	movl	$4, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_2:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V850_INSTR_MAXLEN,8,3          ## @V850_INSTR_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_bit_instrs,8,3                 ## @bit_instrs
L_.str.1:                               ## @.str.1
	.asciz	"%u, 0x%x[r%d]"

	.no_dead_strip	_decode_bit_op
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_bit_op
_decode_bit_op:                         ; @decode_bit_op
	.cfi_startproc
; %bb.0:
	cmp	w1, #4
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #-1
	ret
LBB0_2:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x20, x0
	bl	_r_read_le16
	mov	x21, x0
	mov	x0, x20
	mov	w1, #2
	bl	_r_read_at_le16
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh0:
	adrp	x22, _V850_INSTR_MAXLEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _V850_INSTR_MAXLEN@GOTPAGEOFF]
	ldr	x8, [x22]
	sub	x1, x8, #1
Lloh2:
	adrp	x8, _bit_instrs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bit_instrs@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	asr	w9, w21, #14
	ldr	x8, [x8, w9, sxtw #3]
	str	x8, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	mov	x0, x21
	bl	_get_reg1
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	ldr	x9, [x22]
	sub	x1, x9, #1
	ubfx	w9, w21, #11, #3
	stp	x20, x0, [sp, #8]
	str	x9, [sp]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_snprintf
	mov	w0, #4
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_V850_INSTR_MAXLEN,8,3          ; @V850_INSTR_MAXLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_bit_instrs,8,3                 ; @bit_instrs
l_.str.1:                               ; @.str.1
	.asciz	"%u, 0x%x[r%d]"

	.no_dead_strip	_decode_bit_op
.subsections_via_symbols
