	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hexagon_encode_opcode          ## -- Begin function hexagon_encode_opcode
	.p2align	4, 0x90
_hexagon_encode_opcode:                 ## @hexagon_encode_opcode
	.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
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movsbl	%al, %edi
	callq	_ISSPACE
	leaq	1(%r15), %rbx
	testq	%rax, %rax
	je	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsbl	(%rbx), %edi
	callq	_ISSPACE
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%rbx), %rax
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %r15
	movb	(%rax), %cl
	testb	%cl, %cl
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	cmpb	$49, %cl
	sete	%al
	leal	(%rax,%r14,2), %r14d
	incl	%r13d
	xorb	$69, %cl
	movb	(%r15), %al
	movl	%eax, %edx
	xorb	$69, %dl
	xorl	%esi, %esi
	orb	%cl, %dl
	sete	%sil
	orl	%esi, %r12d
	testb	%al, %al
	jne	LBB0_3
	jmp	LBB0_9
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
LBB0_9:
	movq	_HEXAGON_INSN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$3, %eax
	cmpl	%eax, %r13d
	je	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	callq	_printf
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_assert
LBB0_11:
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.13:
	movq	_HEXAGON_END_NOT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_HEXAGON_END_PAIR@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movl	%r14d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HEXAGON_END_PACKET_SET         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HEXAGON_INSN_LEN,4,2           ## @HEXAGON_INSN_LEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid number of bits: %d\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_HEXAGON_END_PAIR,4,2           ## @HEXAGON_END_PAIR
	.comm	_HEXAGON_END_NOT,4,2            ## @HEXAGON_END_NOT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hexagon_encode_opcode          ; -- Begin function hexagon_encode_opcode
	.p2align	2
_hexagon_encode_opcode:                 ; @hexagon_encode_opcode
	.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
	ldrb	w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x20, x0
	mov	w22, #0
	mov	w19, #0
	mov	w24, #0
	mov	w23, #69
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	sxtb	w0, w8
	bl	_ISSPACE
	add	x21, x20, #1
	cbz	x0, LBB0_5
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsb	w0, [x21], #1
	bl	_ISSPACE
	cbnz	x0, LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x8, x21, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, x20
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x20, x21
	ldrb	w8, [x8]
	cbz	w8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #49
	cset	w21, eq
	bfi	w21, w24, #1, #31
	add	w19, w19, #1
	cmp	w8, #69
	ldrb	w8, [x20]
	ccmp	w8, w23, #0, eq
	cset	w9, eq
	orr	w22, w22, w9
	mov	x24, x21
	cbnz	w8, LBB0_2
	b	LBB0_10
LBB0_8:
	mov	w21, #0
	mov	w19, #0
	mov	w22, #0
	b	LBB0_10
LBB0_9:
	mov	x21, x24
LBB0_10:
Lloh0:
	adrp	x8, _HEXAGON_INSN_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HEXAGON_INSN_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w19, w8, lsl #3
	b.eq	LBB0_12
; %bb.11:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_printf
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_assert
LBB0_12:
Lloh8:
	adrp	x8, _HEXAGON_END_PAIR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HEXAGON_END_PAIR@GOTPAGEOFF]
Lloh10:
	adrp	x9, _HEXAGON_END_NOT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HEXAGON_END_NOT@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	mov	x0, 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	_HEXAGON_END_PACKET_SET
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HEXAGON_INSN_LEN,4,2           ; @HEXAGON_INSN_LEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid number of bits: %d\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_HEXAGON_END_PAIR,4,2           ; @HEXAGON_END_PAIR
	.comm	_HEXAGON_END_NOT,4,2            ; @HEXAGON_END_NOT
.subsections_via_symbols
