	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hexagon_parse_greg
_hexagon_parse_greg:                    ## @hexagon_parse_greg
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	%rcx, -64(%rbp)
	movq	_hexagon_guest_regs@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	_hexagon_guest_regs_count@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	subq	$8, %rsp
	leaq	-64(%rbp), %rsi
	xorl	%r12d, %r12d
	leaq	-80(%rbp), %r9
	xorl	%edx, %edx
	pushq	$0
	callq	_hexagon_reg_num
	addq	$16, %rsp
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	movl	%eax, %ebx
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	movl	$0, (%r15)
LBB0_3:
	movq	16(%rbp), %r10
	movq	_hexagon_verify_hw@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
LBB0_11:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	pushq	%r10
	pushq	%r9
	callq	_hexagon_encode_operand
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	testq	%r15, %r15
	je	LBB0_14
LBB0_13:
	movq	_HEXAGON_OPERAND_IS_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_14:
	movl	%ebx, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-64(%rbp), %r12
LBB0_15:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_HEXAGON_OPERAND_IS_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_11
## %bb.5:
	movq	(%r13), %rax
	movq	-80(%rbp), %rcx
	shlq	$4, %rcx
	movq	_HEXAGON_REG_IS_READONLY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx)
	je	LBB0_11
## %bb.6:
	testq	%r10, %r10
	je	LBB0_8
## %bb.7:
	movq	8(%rax,%rcx), %rdx
	leaq	_hexagon_parse_greg.buf(%rip), %r12
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r10, %r13
	callq	_sprintf
	movq	%r13, %r10
	movq	%r12, (%r13)
LBB0_8:
	testq	%r15, %r15
	je	LBB0_9
## %bb.10:
	movq	_HEXAGON_OPERAND_IS_INVALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	pushq	%r10
	pushq	%r9
	callq	_hexagon_encode_operand
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_13
	jmp	LBB0_15
LBB0_9:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	pushq	%r10
	pushq	%r9
	callq	_hexagon_encode_operand
	addq	$16, %rsp
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_hexagon_parse_greg.buf,150,4 ## @hexagon_parse_greg.buf
	.comm	_hexagon_guest_regs,8,3         ## @hexagon_guest_regs
	.comm	_hexagon_guest_regs_count,4,2   ## @hexagon_guest_regs_count
	.comm	_hexagon_verify_hw,4,2          ## @hexagon_verify_hw
	.comm	_HEXAGON_OPERAND_IS_WRITE,4,2   ## @HEXAGON_OPERAND_IS_WRITE
	.comm	_HEXAGON_REG_IS_READONLY,4,2    ## @HEXAGON_REG_IS_READONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot write to read-only register `%s'."

	.comm	_HEXAGON_OPERAND_IS_INVALID,4,2 ## @HEXAGON_OPERAND_IS_INVALID
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_HEXAGON_OPERAND_IS_CONTROL,4,2 ## @HEXAGON_OPERAND_IS_CONTROL
	.no_dead_strip	_hexagon_parse_greg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hexagon_parse_greg
_hexagon_parse_greg:                    ; @hexagon_parse_greg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x6
	mov	x20, x5
	mov	x19, x4
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	str	x3, [sp, #8]
Lloh0:
	adrp	x26, _hexagon_guest_regs@GOTPAGE
Lloh1:
	ldr	x26, [x26, _hexagon_guest_regs@GOTPAGEOFF]
	ldr	x3, [x26]
Lloh2:
	adrp	x8, _hexagon_guest_regs_count@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hexagon_guest_regs_count@GOTPAGEOFF]
Lloh4:
	ldr	w4, [x8]
	add	x1, sp, #8
	mov	x5, sp
	mov	w2, #0
	mov	w6, #0
	bl	_hexagon_reg_num
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x22, x0
	cbz	x20, LBB0_3
; %bb.2:
	str	wzr, [x20]
LBB0_3:
Lloh5:
	adrp	x8, _hexagon_verify_hw@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hexagon_verify_hw@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w8, LBB0_10
LBB0_4:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, #0
	mov	x6, x5
	mov	x7, x21
	bl	_hexagon_encode_operand
	cbz	x0, LBB0_9
; %bb.5:
	cbz	x20, LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _HEXAGON_OPERAND_IS_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HEXAGON_OPERAND_IS_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_7:
	mov	w8, w22
	str	x8, [x19]
	ldr	x0, [sp, #8]
	b	LBB0_9
LBB0_8:
	mov	x0, #0
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	w8, [x25]
Lloh14:
	adrp	x9, _HEXAGON_OPERAND_IS_WRITE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HEXAGON_OPERAND_IS_WRITE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.11:
	ldr	x8, [x26]
	ldr	x9, [sp]
	lsl	x10, x9, #4
	ldr	w10, [x8, x10]
Lloh17:
	adrp	x11, _HEXAGON_REG_IS_READONLY@GOTPAGE
Lloh18:
	ldr	x11, [x11, _HEXAGON_REG_IS_READONLY@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.12:
	cbz	x21, LBB0_14
; %bb.13:
	add	x8, x8, x9, lsl #4
	ldr	x2, [x8, #8]
Lloh20:
	adrp	x26, _hexagon_parse_greg.buf@PAGE
Lloh21:
	add	x26, x26, _hexagon_parse_greg.buf@PAGEOFF
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x26
	bl	_sprintf
	str	x26, [x21]
LBB0_14:
	cbz	x20, LBB0_16
; %bb.15:
Lloh24:
	adrp	x8, _HEXAGON_OPERAND_IS_INVALID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HEXAGON_OPERAND_IS_INVALID@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh27:
	adrp	x8, _FALSE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh29:
	ldr	w5, [x8]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, #0
	mov	x6, x5
	mov	x7, x21
	bl	_hexagon_encode_operand
	cbnz	x0, LBB0_6
	b	LBB0_9
LBB0_16:
Lloh30:
	adrp	x8, _FALSE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh32:
	ldr	w5, [x8]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, #0
	mov	x6, x5
	mov	x7, x21
	bl	_hexagon_encode_operand
	cbnz	x0, LBB0_7
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_hexagon_parse_greg.buf,150,0 ; @hexagon_parse_greg.buf
	.comm	_hexagon_guest_regs,8,3         ; @hexagon_guest_regs
	.comm	_hexagon_guest_regs_count,4,2   ; @hexagon_guest_regs_count
	.comm	_hexagon_verify_hw,4,2          ; @hexagon_verify_hw
	.comm	_HEXAGON_OPERAND_IS_WRITE,4,2   ; @HEXAGON_OPERAND_IS_WRITE
	.comm	_HEXAGON_REG_IS_READONLY,4,2    ; @HEXAGON_REG_IS_READONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot write to read-only register `%s'."

	.comm	_HEXAGON_OPERAND_IS_INVALID,4,2 ; @HEXAGON_OPERAND_IS_INVALID
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_HEXAGON_OPERAND_IS_CONTROL,4,2 ; @HEXAGON_OPERAND_IS_CONTROL
	.no_dead_strip	_hexagon_parse_greg
.subsections_via_symbols
