	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_avoid_hazard
_mips_avoid_hazard:                     ## @mips_avoid_hazard
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	%rsi, %rdi
	callq	_INSN_P
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	movq	%r12, %rdi
	callq	_PATTERN
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_GET_CODE
	movq	_ASM_INPUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_asm_noperands
	testq	%rax, %rax
	js	LBB0_4
LBB0_3:
	movq	_cfun@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	$0, (%rax)
LBB0_4:
	movq	%r12, %rdi
	callq	_get_attr_length
	movl	%eax, %r14d
	leal	3(%r14), %eax
	testl	%r14d, %r14d
	cmovsl	%eax, %r14d
	cmpl	$7, %eax
	jb	LBB0_20
## %bb.5:
	sarl	$2, %r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$1, (%rax)
	jg	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_reg_set_p
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %eax
	movl	$2, %ebx
	movl	$2, (%rcx)
	cmpl	$1, %eax
	jg	LBB0_15
## %bb.11:
	subl	%eax, %ebx
	jmp	LBB0_12
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.8:
	movq	%r15, %rsi
	callq	_reg_referenced_p
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	movl	$1, %ebx
LBB0_12:
	incl	%ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_gen_hazard_nop
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_emit_insn_after
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_13
LBB0_14:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ebx
LBB0_15:
	addl	%r14d, %ebx
	movl	%ebx, (%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	%r12, %rdi
	callq	_INSN_CODE
	testq	%rax, %rax
	js	LBB0_20
## %bb.16:
	movq	%r12, %rdi
	callq	_get_attr_hazard
	cmpl	$130, %eax
	je	LBB0_19
## %bb.17:
	cmpl	$129, %eax
	jne	LBB0_20
## %bb.18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_20
LBB0_19:
	movq	%r12, %rdi
	callq	_single_set
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_gcc_assert
	movq	%rbx, %rdi
	callq	_SET_DEST
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASM_INPUT,8,3                  ## @ASM_INPUT
	.comm	_cfun,8,3                       ## @cfun
	.no_dead_strip	_mips_avoid_hazard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_avoid_hazard
_mips_avoid_hazard:                     ; @mips_avoid_hazard
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x1
	bl	_INSN_P
	cbz	w0, LBB0_20
; %bb.1:
	mov	x0, x21
	bl	_PATTERN
	mov	x24, x0
	bl	_GET_CODE
Lloh0:
	adrp	x8, _ASM_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ASM_INPUT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x24
	bl	_asm_noperands
	tbnz	x0, #63, LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _cfun@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cfun@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	wzr, [x8]
LBB0_4:
	mov	x0, x21
	bl	_get_attr_length
	add	w9, w0, #3
	cmp	w0, #0
	csel	w8, w9, w0, lt
	cmp	w9, #7
	b.lo	LBB0_20
; %bb.5:
	asr	w25, w8, #2
	ldr	w8, [x20]
	cmp	w8, #1
	b.gt	LBB0_9
; %bb.6:
	mov	x0, x23
	mov	x1, x24
	bl	_reg_set_p
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w9, [x20]
	mov	w8, #2
	str	w8, [x20]
	cmp	w9, #1
	b.gt	LBB0_15
; %bb.8:
	sub	w8, w8, w9
	b	LBB0_12
LBB0_9:
	ldr	x0, [x19]
	cbz	x0, LBB0_14
; %bb.10:
	mov	x1, x24
	bl	_reg_referenced_p
	cbz	x0, LBB0_14
; %bb.11:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	w8, #1
LBB0_12:
	add	w23, w8, #1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	bl	_gen_hazard_nop
	mov	x1, x22
	bl	_emit_insn_after
	sub	w23, w23, #1
	cmp	w23, #1
	b.hi	LBB0_13
LBB0_14:
	ldr	w8, [x20]
LBB0_15:
	add	w8, w8, w25
	str	w8, [x20]
	str	xzr, [x19]
	mov	x0, x21
	bl	_INSN_CODE
	tbnz	x0, #63, LBB0_20
; %bb.16:
	mov	x0, x21
	bl	_get_attr_hazard
	cmp	w0, #130
	b.eq	LBB0_19
; %bb.17:
	cmp	w0, #129
	b.ne	LBB0_20
; %bb.18:
	str	wzr, [x20]
	b	LBB0_20
LBB0_19:
	mov	x0, x21
	bl	_single_set
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_gcc_assert
	mov	x0, x20
	bl	_SET_DEST
	str	x0, [x19]
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ASM_INPUT,8,3                  ; @ASM_INPUT
	.comm	_cfun,8,3                       ; @cfun
	.no_dead_strip	_mips_avoid_hazard
.subsections_via_symbols
