	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgen_get_insn_value            ## -- Begin function cgen_get_insn_value
	.p2align	4, 0x90
_cgen_get_insn_value:                   ## @cgen_get_insn_value
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_CGEN_ENDIAN_BIG@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	movl	%edx, %r9d
	movq	%rsi, %r13
	sete	%r12b
	movl	8(%rdi), %r14d
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.1:
	cmpl	%r9d, %r14d
	jge	LBB0_7
## %bb.2:
	movl	%r9d, %eax
	cltd
	idivl	%r14d
	testl	%edx, %edx
	jne	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	testl	%r9d, %r9d
	jle	LBB0_6
## %bb.4:
	xorl	%r15d, %r15d
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	7(%r15), %eax
	testl	%r15d, %r15d
	cmovnsl	%r15d, %eax
	sarl	$3, %eax
	movslq	%eax, %rdi
	addq	%r13, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	callq	_bfd_get_bits
	movl	%r14d, %ecx
	shll	%cl, %ebx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	orl	%eax, %ebx
	addl	%r14d, %r15d
	cmpl	%r9d, %r15d
	jl	LBB0_5
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r13, %rdi
	movl	%r9d, %esi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bfd_get_bits                   ## TAILCALL
LBB0_8:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_CGEN_ENDIAN_BIG,8,3            ## @CGEN_ENDIAN_BIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgen_get_insn_value            ; -- Begin function cgen_get_insn_value
	.p2align	2
_cgen_get_insn_value:                   ; @cgen_get_insn_value
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CGEN_ENDIAN_BIG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CGEN_ENDIAN_BIG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w21, eq
	ldr	w22, [x0, #8]
	cmp	w22, #0
	ccmp	w22, w2, #0, ne
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_bfd_get_bits
LBB0_2:
	sdiv	w8, w19, w22
	msub	w8, w8, w22, w19
	cbnz	w8, LBB0_8
; %bb.3:
	cmp	w19, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w23, #0
	mov	w24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w24, #7
	cmp	w24, #0
	csel	w8, w8, w24, lt
	asr	w8, w8, #3
	add	x0, x20, w8, sxtw
	mov	x1, x22
	mov	x2, x21
	bl	_bfd_get_bits
	lsl	w8, w23, w22
	orr	w23, w0, w8
	add	w24, w24, w22
	cmp	w24, w19
	b.lt	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	w23, #0
LBB0_7:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	_abort
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CGEN_ENDIAN_BIG,8,3            ; @CGEN_ENDIAN_BIG
.subsections_via_symbols
