	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sparc_utrap_install
_sparc_utrap_install:                   ## @sparc_utrap_install
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	(%rcx), %r14
	leaq	-136(%rbp), %rsi
	movq	%rax, %rdi
	movl	$48, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	-136(%rbp), %eax
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	_UT_MAX@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jg	LBB0_5
## %bb.3:
	movq	-128(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_7
## %bb.4:
	testl	%eax, %eax
	je	LBB0_7
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	testl	%eax, %eax
	je	LBB0_27
## %bb.8:
	leaq	-88(%rbp), %rsi
	movl	$48, %edx
	callq	_copyin
	testl	%eax, %eax
	jne	LBB0_6
## %bb.9:
	movl	$1, %r13d
	movq	_UTH_NOCHANGE@GOTPCREL(%rip), %r15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	-72(%rbp), %eax
	cmpl	(%r15), %eax
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%eax, %eax
	js	LBB0_5
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	(%r12), %eax
	jge	LBB0_5
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%esi, %esi
	callq	_suword
	testl	%eax, %eax
	jne	LBB0_6
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	testq	%r14, %r14
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r14), %rax
	movslq	-72(%rbp), %rcx
	movq	(%rax,%rcx,8), %rsi
	jmp	LBB0_19
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%esi, %esi
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	callq	_suword
	testl	%eax, %eax
	jne	LBB0_6
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	-72(%rbp), %eax
	cmpl	(%r15), %eax
	je	LBB0_24
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	testq	%r14, %r14
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
	callq	_utrap_alloc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	%r14, (%rax)
	movl	-72(%rbp), %eax
LBB0_23:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-64(%rbp), %rcx
	movq	(%r14), %rdx
	cltq
	movq	%rcx, (%rdx,%rax,8)
LBB0_24:                                ##   in Loop: Header=BB0_10 Depth=1
	movslq	-136(%rbp), %rax
	cmpq	%rax, %r13
	jge	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-128(%rbp), %rdi
	addq	%r13, %rdi
	leaq	-88(%rbp), %rsi
	movl	$48, %edx
	callq	_copyin
	incq	%r13
	testl	%eax, %eax
	je	LBB0_10
	jmp	LBB0_6
LBB0_27:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_UT_MAX,4,2                     ## @UT_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_UTH_NOCHANGE,4,2               ## @UTH_NOCHANGE
	.no_dead_strip	_sparc_utrap_install
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sparc_utrap_install
_sparc_utrap_install:                   ; @sparc_utrap_install
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x8, x1
	mov	x19, x0
	ldr	x9, [x0]
	ldr	x20, [x9]
	add	x1, sp, #48
	mov	x0, x8
	mov	w2, #48
	bl	_copyin
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w8, [sp, #48]
	tbnz	w8, #31, LBB0_5
; %bb.2:
Lloh0:
	adrp	x21, _UT_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UT_MAX@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w8, w9
	b.gt	LBB0_5
; %bb.3:
	ldr	x0, [sp, #56]
	cbnz	x0, LBB0_7
; %bb.4:
	cbz	w8, LBB0_7
LBB0_5:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_7:
	cbz	w8, LBB0_25
; %bb.8:
	mov	x1, sp
	mov	w2, #48
	bl	_copyin
	cbnz	w0, LBB0_6
; %bb.9:
	mov	w22, #1
Lloh5:
	adrp	x23, _UTH_NOCHANGE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _UTH_NOCHANGE@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #16]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	tbnz	w8, #31, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x21]
	cmp	w8, w9
	b.ge	LBB0_5
LBB0_13:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, #0
	bl	_suword
	cbnz	w0, LBB0_6
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [sp, #32]
	cbz	x0, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	cbz	x20, LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x20]
	ldrsw	x9, [sp, #16]
	ldr	x1, [x8, x9, lsl #3]
	bl	_suword
	cbz	w0, LBB0_19
	b	LBB0_6
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x1, #0
	bl	_suword
	cbnz	w0, LBB0_6
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [sp, #16]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=1
	cbnz	x20, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_utrap_alloc
	mov	x20, x0
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	w8, [sp, #16]
LBB0_22:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [sp, #24]
	ldr	x10, [x20]
	str	x9, [x10, w8, sxtw #3]
LBB0_23:                                ;   in Loop: Header=BB0_10 Depth=1
	ldrsw	x8, [sp, #48]
	cmp	x22, x8
	b.ge	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #56]
	add	x0, x8, x22
	mov	x1, sp
	mov	w2, #48
	bl	_copyin
	add	x22, x22, #1
	cbz	w0, LBB0_10
	b	LBB0_6
LBB0_25:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_UT_MAX,4,2                     ; @UT_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_UTH_NOCHANGE,4,2               ; @UTH_NOCHANGE
	.no_dead_strip	_sparc_utrap_install
.subsections_via_symbols
