	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xtensa_operand_do_reloc        ## -- Begin function xtensa_operand_do_reloc
	.p2align	4, 0x90
_xtensa_operand_do_reloc:               ## @xtensa_operand_do_reloc
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %r15
	callq	_get_operand
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_XTENSA_OPERAND_IS_PCRELATIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.2:
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_xtensa_isa_bad_value@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_xtisa_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_xtisa_error_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %ecx
	callq	_sprintf
	jmp	LBB0_6
LBB0_3:
	movq	_xtensa_isa_internal_error@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_xtisa_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_xtisa_error_msg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
LBB0_6:
	movl	$-1, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XTENSA_OPERAND_IS_PCRELATIVE,4,2 ## @XTENSA_OPERAND_IS_PCRELATIVE
	.comm	_xtensa_isa_internal_error,4,2  ## @xtensa_isa_internal_error
	.comm	_xtisa_errno,4,2                ## @xtisa_errno
	.comm	_xtisa_error_msg,4,2            ## @xtisa_error_msg
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"operand missing do_reloc function"

	.comm	_xtensa_isa_bad_value,4,2       ## @xtensa_isa_bad_value
L_.str.1:                               ## @.str.1
	.asciz	"do_reloc failed for value 0x%08x at PC 0x%08x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xtensa_operand_do_reloc        ; -- Begin function xtensa_operand_do_reloc
	.p2align	2
_xtensa_operand_do_reloc:               ; @xtensa_operand_do_reloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x4
	mov	x20, x3
	bl	_get_operand
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _XTENSA_OPERAND_IS_PCRELATIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _XTENSA_OPERAND_IS_PCRELATIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	blr	x8
	cbz	x0, LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _xtensa_isa_bad_value@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xtensa_isa_bad_value@GOTPAGEOFF]
Lloh5:
	adrp	x9, _xtisa_errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _xtisa_errno@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	str	w8, [x9]
Lloh9:
	adrp	x8, _xtisa_error_msg@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xtisa_error_msg@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x19
	bl	_sprintf
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x8, _xtensa_isa_internal_error@GOTPAGE
Lloh15:
	ldr	x8, [x8, _xtensa_isa_internal_error@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _xtisa_errno@GOTPAGE
Lloh18:
	ldr	x9, [x9, _xtisa_errno@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
Lloh20:
	adrp	x8, _xtisa_error_msg@GOTPAGE
Lloh21:
	ldr	x8, [x8, _xtisa_error_msg@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_XTENSA_OPERAND_IS_PCRELATIVE,4,2 ; @XTENSA_OPERAND_IS_PCRELATIVE
	.comm	_xtensa_isa_internal_error,4,2  ; @xtensa_isa_internal_error
	.comm	_xtisa_errno,4,2                ; @xtisa_errno
	.comm	_xtisa_error_msg,4,2            ; @xtisa_error_msg
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"operand missing do_reloc function"

	.comm	_xtensa_isa_bad_value,4,2       ; @xtensa_isa_bad_value
l_.str.1:                               ; @.str.1
	.asciz	"do_reloc failed for value 0x%08x at PC 0x%08x"

.subsections_via_symbols
