	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_reloc                      ## -- Begin function elf_reloc
	.p2align	4, 0x90
_elf_reloc:                             ## @elf_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	%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	_ELF_RELOC_RELA@GOTPCREL(%rip), %rax
	movl	$-1, %ebx
	cmpl	%ecx, (%rax)
	jne	LBB0_20
## %bb.1:
	movq	%r8, %r14
	movq	%rdx, %r13
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movslq	(%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rdx), %edi
	callq	_ELF64_R_TYPE_ID
	movq	%rax, %r12
	movl	8(%r13), %edi
	callq	_ELF_R_SYM
	movq	%rax, %r15
	movq	_R_SPARC_NONE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %r12
	je	LBB0_20
## %bb.2:
	movq	_R_SPARC_RELATIVE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_20
## %bb.3:
	movq	_R_SPARC_JMP_SLOT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_6
## %bb.4:
	movq	_R_SPARC_COPY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_6
## %bb.5:
	movq	_reloc_target_bitmask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_nitems
	cmpq	%rax, %r12
	jge	LBB0_6
## %bb.8:
	movq	%r12, %rdi
	callq	_RELOC_UNALIGNED
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str(%rip), %rdi
LBB0_7:
	movq	%r12, %rsi
	callq	_printf
	movl	$-1, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	4(%r13), %ebx
	movq	%r12, %rdi
	callq	_RELOC_RESOLVE_SYMBOL
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	leaq	-64(%rbp), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movl	$1, %edx
	callq	*%r14
	movl	$-1, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.13:
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	addl	-64(%rbp), %ebx
	movq	%r12, %rdi
	callq	_RELOC_BARE_SYMBOL
	testq	%rax, %rax
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_15
## %bb.14:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%ebx, %esi
	callq	_elf_relocaddr
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_11:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_15:
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	addq	%rax, %r15
	movq	_R_SPARC_OLO10@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_17
## %bb.16:
	andl	$1023, %ebx                     ## imm = 0x3FF
	movl	8(%r13), %edi
	callq	_ELF64_R_TYPE_DATA
	addl	%eax, %ebx
LBB0_17:
	movq	_R_SPARC_HIX22@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpq	(%rax), %r12
	sete	%r14b
	negl	%r14d
	xorl	%ebx, %r14d
	movq	%r12, %rdi
	callq	_RELOC_PC_RELATIVE
	xorl	%ebx, %ebx
	testq	%rax, %rax
	movl	%r15d, %eax
	cmovel	%ebx, %eax
	subl	%eax, %r14d
	movq	%r12, %rdi
	callq	_RELOC_BASE_RELATIVE
	testq	%rax, %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.18:
	addl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %esi
	callq	_elf_relocaddr
	movl	%eax, %r14d
LBB0_19:
	movq	%r12, %rdi
	callq	_RELOC_VALUE_BITMASK
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_RELOC_VALUE_RIGHTSHIFT
	movl	%eax, %ecx
	sarl	%cl, %r14d
	andl	%r15d, %r14d
	movq	_R_SPARC_LOX10@GOTPCREL(%rip), %rax
	movl	%r14d, %r13d
	orl	$7168, %r13d                    ## imm = 0x1C00
	cmpq	(%rax), %r12
	cmovnel	%r14d, %r13d
	movq	%r12, %rdi
	callq	_RELOC_TARGET_SIZE
	notl	%r15d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	andl	(%rax), %r15d
	orl	%r13d, %r15d
	movl	%r15d, (%rax)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ELF_RELOC_RELA,4,2             ## @ELF_RELOC_RELA
	.comm	_R_SPARC_NONE,8,3               ## @R_SPARC_NONE
	.comm	_R_SPARC_RELATIVE,8,3           ## @R_SPARC_RELATIVE
	.comm	_R_SPARC_JMP_SLOT,8,3           ## @R_SPARC_JMP_SLOT
	.comm	_R_SPARC_COPY,8,3               ## @R_SPARC_COPY
	.comm	_reloc_target_bitmask,4,2       ## @reloc_target_bitmask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"kldload: unexpected relocation type %ld\n"

L_.str.1:                               ## @.str.1
	.asciz	"kldload: unaligned relocation type %ld\n"

	.comm	_R_SPARC_OLO10,8,3              ## @R_SPARC_OLO10
	.comm	_R_SPARC_HIX22,8,3              ## @R_SPARC_HIX22
	.comm	_R_SPARC_LOX10,8,3              ## @R_SPARC_LOX10
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_elf_reloc                      ; -- Begin function elf_reloc
	.p2align	2
_elf_reloc:                             ; @elf_reloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, _ELF_RELOC_RELA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ELF_RELOC_RELA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_9
; %bb.1:
	mov	x23, x4
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldrsw	x26, [x2]
	ldr	w0, [x2, #8]
	bl	_ELF64_R_TYPE_ID
	mov	x19, x0
	ldr	w0, [x22, #8]
	bl	_ELF_R_SYM
Lloh3:
	adrp	x8, _R_SPARC_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R_SPARC_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _R_SPARC_RELATIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _R_SPARC_RELATIVE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x19, x8
	ccmp	x19, x9, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_10
LBB0_3:
Lloh9:
	adrp	x8, _R_SPARC_JMP_SLOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _R_SPARC_JMP_SLOT@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _R_SPARC_COPY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _R_SPARC_COPY@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x19, x8
	ccmp	x19, x9, #4, ne
	b.eq	LBB0_7
; %bb.4:
	mov	x25, x0
Lloh15:
	adrp	x8, _reloc_target_bitmask@GOTPAGE
Lloh16:
	ldr	x8, [x8, _reloc_target_bitmask@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_nitems
	cmp	x19, x0
	b.ge	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_RELOC_UNALIGNED
	cbz	x0, LBB0_11
; %bb.6:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
LBB0_8:
	mov	x1, x19
	bl	_printf
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	ldr	w24, [x22, #4]
	mov	x0, x19
	bl	_RELOC_RESOLVE_SYMBOL
	cbz	x0, LBB0_15
; %bb.12:
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x25
	mov	w2, #1
	blr	x23
	cbnz	w0, LBB0_9
; %bb.13:
	ldr	w8, [sp, #12]
	add	w24, w8, w24
	mov	x0, x19
	bl	_RELOC_BARE_SYMBOL
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x24
	bl	_elf_relocaddr
	mov	x24, x0
LBB0_15:
	add	x23, x26, w21, sxtw
Lloh22:
	adrp	x8, _R_SPARC_OLO10@GOTPAGE
Lloh23:
	ldr	x8, [x8, _R_SPARC_OLO10@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_17
; %bb.16:
	and	w24, w24, #0x3ff
	ldr	w0, [x22, #8]
	bl	_ELF64_R_TYPE_DATA
	add	w24, w0, w24
LBB0_17:
Lloh25:
	adrp	x8, _R_SPARC_HIX22@GOTPAGE
Lloh26:
	ldr	x8, [x8, _R_SPARC_HIX22@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x19, x8
	cinv	w22, w24, eq
	mov	x0, x19
	bl	_RELOC_PC_RELATIVE
	cmp	x0, #0
	csel	w8, wzr, w23, eq
	sub	w22, w22, w8
	mov	x0, x19
	bl	_RELOC_BASE_RELATIVE
	cbz	x0, LBB0_19
; %bb.18:
	add	w1, w22, w21
	mov	x0, x20
	bl	_elf_relocaddr
	mov	x22, x0
LBB0_19:
	mov	x0, x19
	bl	_RELOC_VALUE_BITMASK
	mov	x20, x0
	mov	x0, x19
	bl	_RELOC_VALUE_RIGHTSHIFT
	asr	w8, w22, w0
	and	w8, w8, w20
Lloh28:
	adrp	x9, _R_SPARC_LOX10@GOTPAGE
Lloh29:
	ldr	x9, [x9, _R_SPARC_LOX10@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	orr	w10, w8, #0x1c00
	cmp	x19, x9
	csel	w21, w10, w8, eq
	mov	x0, x19
	bl	_RELOC_TARGET_SIZE
	mov	w0, #0
	ldr	w8, [x23]
	bic	w8, w8, w20
	orr	w8, w8, w21
	str	w8, [x23]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ELF_RELOC_RELA,4,2             ; @ELF_RELOC_RELA
	.comm	_R_SPARC_NONE,8,3               ; @R_SPARC_NONE
	.comm	_R_SPARC_RELATIVE,8,3           ; @R_SPARC_RELATIVE
	.comm	_R_SPARC_JMP_SLOT,8,3           ; @R_SPARC_JMP_SLOT
	.comm	_R_SPARC_COPY,8,3               ; @R_SPARC_COPY
	.comm	_reloc_target_bitmask,4,2       ; @reloc_target_bitmask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"kldload: unexpected relocation type %ld\n"

l_.str.1:                               ; @.str.1
	.asciz	"kldload: unaligned relocation type %ld\n"

	.comm	_R_SPARC_OLO10,8,3              ; @R_SPARC_OLO10
	.comm	_R_SPARC_HIX22,8,3              ; @R_SPARC_HIX22
	.comm	_R_SPARC_LOX10,8,3              ; @R_SPARC_LOX10
.subsections_via_symbols
