	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hexagon_extract_operand        ## -- Begin function hexagon_extract_operand
	.p2align	4, 0x90
_hexagon_extract_operand:               ## @hexagon_extract_operand
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movb	(%rdi), %r14b
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	callq	_HEXAGON_IS16BITS
	movb	(%rbx), %r15b
	testb	%r15b, %r15b
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	testq	%rax, %rax
	movl	$-2147483648, %eax              ## imm = 0x80000000
	movl	$32768, %r13d                   ## imm = 0x8000
	cmovel	%eax, %r13d
	leaq	1(%rbx), %r12
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	sarl	%r13d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%r12), %r15d
	incq	%r12
	testb	%r15b, %r15b
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%r15b, %edi
	callq	_ISSPACE
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	%r14b, %r15b
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	testl	%r13d, -68(%rbp)                ## 4-byte Folded Reload
	setne	%al
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rax,%rcx,2), %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	incl	%ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
LBB0_8:
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	4(%rdx), %r9d
	cmpl	%r9d, %ebx
	jne	LBB0_9
## %bb.11:
	movl	8(%rdx), %esi
	movq	_HEXAGON_OPERAND_IS_SIGNED@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_12
## %bb.13:
	cmpl	$31, %ebx
	jbe	LBB0_15
## %bb.14:
	movq	_FALSE@GOTPCREL(%rip), %r14
	jmp	LBB0_21
LBB0_9:
	movq	_FALSE@GOTPCREL(%rip), %r14
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	testq	%r12, %r12
	je	LBB0_21
## %bb.10:
	movsbl	(%rdx), %edx
	leaq	_hexagon_extract_operand.xx(%rip), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, %r8d
	callq	_sprintf
	movq	%r15, (%r12)
	jmp	LBB0_21
LBB0_12:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_18
LBB0_15:
	leal	-1(%rbx), %eax
	movzbl	%al, %eax
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	btl	%eax, %r8d
	jae	LBB0_17
## %bb.16:
	negb	%bl
	movl	%ebx, %ecx
	shll	%cl, %r8d
	sarl	%cl, %r8d
LBB0_17:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	movb	12(%rdx), %cl
	shll	%cl, %r8d
	movq	_HEXAGON_OPERAND_PC_RELATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	cmovel	%eax, %edi
	addl	%r8d, %edi
	movq	_HEXAGON_OPERAND_IS_SUBSET@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_20
## %bb.19:
	movq	_HEXAGON_OPERAND_IS_PAIR@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_HEXAGON_SUBREGS_FROM
	movl	%eax, %edi
LBB0_20:
	movl	%edi, (%rbx)
	movq	_TRUE@GOTPCREL(%rip), %r14
LBB0_21:
	movl	(%r14), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_hexagon_extract_operand.xx,100,4 ## @hexagon_extract_operand.xx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"operand %c wrong number of bits found in %s, %d != %d"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_HEXAGON_OPERAND_IS_SIGNED,4,2  ## @HEXAGON_OPERAND_IS_SIGNED
	.comm	_HEXAGON_OPERAND_PC_RELATIVE,4,2 ## @HEXAGON_OPERAND_PC_RELATIVE
	.comm	_HEXAGON_OPERAND_IS_SUBSET,4,2  ## @HEXAGON_OPERAND_IS_SUBSET
	.comm	_HEXAGON_OPERAND_IS_PAIR,4,2    ## @HEXAGON_OPERAND_IS_PAIR
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hexagon_extract_operand        ; -- Begin function hexagon_extract_operand
	.p2align	2
_hexagon_extract_operand:               ; @hexagon_extract_operand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x5
	mov	x19, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x21, x0
	ldrb	w27, [x0]
	mov	x0, x1
	bl	_HEXAGON_IS16BITS
	ldrb	w20, [x23]
	stp	x24, x19, [sp]                  ; 16-byte Folded Spill
	cbz	w20, LBB0_3
; %bb.1:
	mov	w24, #0
	mov	w26, #0
	cmp	x0, #0
	mov	w8, #32768
	mov	w9, #-2147483648
	csel	w28, w9, w8, eq
	add	x19, x23, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w20
	bl	_ISSPACE
	tst	w28, w25
	cset	w8, ne
	bfi	w8, w26, #1, #31
	cmp	w27, w20, uxtb
	csel	w8, w26, w8, ne
	cinc	w9, w24, eq
	asr	w10, w28, #1
	cmp	w0, #0
	csel	w26, w26, w8, ne
	csel	w24, w24, w9, ne
	csel	w28, w28, w10, ne
	ldrb	w20, [x19], #1
	cbnz	w20, LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w26, #0
	mov	w24, #0
LBB0_4:
	ldr	w5, [x21, #4]
	cmp	w24, w5
	b.ne	LBB0_11
; %bb.5:
	ldr	w8, [x21, #8]
Lloh0:
	adrp	x9, _HEXAGON_OPERAND_IS_SIGNED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HEXAGON_OPERAND_IS_SIGNED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	cmp	w24, #31
	b.hi	LBB0_13
; %bb.7:
	sub	w9, w24, #1
	lsr	w9, w26, w9
	neg	w10, w24
	lsl	w11, w26, w10
	asr	w10, w11, w10
	tst	w9, #0x1
	csel	w26, w26, w10, eq
LBB0_8:
	ldp	x11, x19, [sp]                  ; 16-byte Folded Reload
	ldr	w9, [x21, #12]
	lsl	w9, w26, w9
Lloh3:
	adrp	x10, _HEXAGON_OPERAND_PC_RELATIVE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HEXAGON_OPERAND_PC_RELATIVE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	add	w0, w10, w9
Lloh6:
	adrp	x9, _HEXAGON_OPERAND_IS_SUBSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HEXAGON_OPERAND_IS_SUBSET@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
Lloh9:
	adrp	x9, _HEXAGON_OPERAND_IS_PAIR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HEXAGON_OPERAND_IS_PAIR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_HEXAGON_SUBREGS_FROM
LBB0_10:
	str	w0, [x19]
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	cbz	x22, LBB0_13
; %bb.12:
	ldrsb	w2, [x21]
Lloh14:
	adrp	x19, _hexagon_extract_operand.xx@PAGE
Lloh15:
	add	x19, x19, _hexagon_extract_operand.xx@PAGEOFF
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x23
	mov	x4, x24
	bl	_sprintf
	str	x19, [x22]
LBB0_13:
Lloh18:
	adrp	x8, _FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_hexagon_extract_operand.xx,100,0 ; @hexagon_extract_operand.xx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"operand %c wrong number of bits found in %s, %d != %d"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_HEXAGON_OPERAND_IS_SIGNED,4,2  ; @HEXAGON_OPERAND_IS_SIGNED
	.comm	_HEXAGON_OPERAND_PC_RELATIVE,4,2 ; @HEXAGON_OPERAND_PC_RELATIVE
	.comm	_HEXAGON_OPERAND_IS_SUBSET,4,2  ; @HEXAGON_OPERAND_IS_SUBSET
	.comm	_HEXAGON_OPERAND_IS_PAIR,4,2    ; @HEXAGON_OPERAND_IS_PAIR
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
