	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mips_get_unaligned_mem
_mips_get_unaligned_mem:                ## @mips_get_unaligned_mem
	.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
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	(%rdi), %edi
	callq	_MEM_P
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$32, %r12d
	je	LBB0_4
## %bb.2:
	cmpl	$64, %r12d
	jne	LBB0_7
## %bb.3:
	movq	_TARGET_64BIT@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
LBB0_4:
	movq	_BITS_PER_UNIT@GOTPCREL(%rip), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	jne	LBB0_7
## %bb.5:
	movq	%rcx, %r14
	movl	(%r13), %edi
	callq	_MEM_ALIGN
	cmpl	%r12d, %eax
	jae	LBB0_7
## %bb.6:
	movl	(%r13), %edi
	movq	_BLKmode@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_adjust_address
	movl	%eax, %ebx
	movl	%eax, (%r13)
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	(%r14)
	movl	%eax, %edi
	callq	_GEN_INT
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_set_mem_size
	movl	(%r13), %edi
	movq	_QImode@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_adjust_address
	movl	%eax, %ebx
	movl	(%r13), %edi
	movl	(%r14), %esi
	movl	%r12d, %eax
	xorl	%edx, %edx
	movq	_BITS_PER_UNIT@GOTPCREL(%rip), %rcx
	divl	(%rcx)
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	callq	_adjust_address
	movq	_TARGET_BIG_ENDIAN@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movl	%ebx, %ecx
	cmovel	%eax, %ecx
	cmovel	%ebx, %eax
	movl	%ecx, (%r15)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$1, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TARGET_64BIT,4,2               ## @TARGET_64BIT
	.comm	_BITS_PER_UNIT,4,2              ## @BITS_PER_UNIT
	.comm	_BLKmode,4,2                    ## @BLKmode
	.comm	_QImode,4,2                     ## @QImode
	.comm	_TARGET_BIG_ENDIAN,8,3          ## @TARGET_BIG_ENDIAN
	.no_dead_strip	_mips_get_unaligned_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mips_get_unaligned_mem
_mips_get_unaligned_mem:                ; @mips_get_unaligned_mem
	.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	x19, x4
	mov	x20, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0]
	bl	_MEM_P
	cbz	w0, LBB0_8
; %bb.1:
	cmp	w21, #32
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
	cmp	w21, #64
	b.ne	LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _TARGET_64BIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TARGET_64BIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
LBB0_4:
Lloh3:
	adrp	x24, _BITS_PER_UNIT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _BITS_PER_UNIT@GOTPAGEOFF]
	ldr	w8, [x24]
	sdiv	w9, w23, w8
	msub	w8, w9, w8, w23
	cbnz	w8, LBB0_7
; %bb.5:
	ldr	w0, [x22]
	bl	_MEM_ALIGN
	cmp	w0, w21
	b.hs	LBB0_7
; %bb.6:
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _BLKmode@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BLKmode@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_adjust_address
	mov	x23, x0
	str	w0, [x22]
	ldr	w8, [x24]
	udiv	w0, w21, w8
	bl	_GEN_INT
	mov	x1, x0
	mov	x0, x23
	bl	_set_mem_size
	ldr	w0, [x22]
Lloh8:
	adrp	x25, _QImode@GOTPAGE
Lloh9:
	ldr	x25, [x25, _QImode@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w2, #0
	bl	_adjust_address
	mov	x23, x0
	ldr	w0, [x22]
	ldr	w1, [x25]
	ldr	w8, [x24]
	udiv	w8, w21, w8
	sub	w2, w8, #1
	bl	_adjust_address
Lloh10:
	adrp	x8, _TARGET_BIG_ENDIAN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TARGET_BIG_ENDIAN@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	w8, w0, w23, eq
	csel	w9, w23, w0, eq
	str	w8, [x20]
	str	w9, [x19]
	mov	w0, #1
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TARGET_64BIT,4,2               ; @TARGET_64BIT
	.comm	_BITS_PER_UNIT,4,2              ; @BITS_PER_UNIT
	.comm	_BLKmode,4,2                    ; @BLKmode
	.comm	_QImode,4,2                     ; @QImode
	.comm	_TARGET_BIG_ENDIAN,8,3          ; @TARGET_BIG_ENDIAN
	.no_dead_strip	_mips_get_unaligned_mem
.subsections_via_symbols
