	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elf_reloc_internal
_elf_reloc_internal:                    ## @elf_reloc_internal
	.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
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	cmpl	$133, %ecx
	jne	LBB0_16
## %bb.1:
	movq	%r9, %r12
	movq	%rdx, %r14
	movl	%esi, %r13d
	movslq	8(%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdx), %r15d
	movl	4(%rdx), %edi
	callq	_ELF_R_TYPE
	movl	%eax, %ebx
	movl	4(%r14), %edi
	callq	_ELF_R_SYM
	leal	-128(%rbx), %ecx
	cmpl	$4, %ecx
	ja	LBB0_15
## %bb.2:
	movslq	%r13d, %rbx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rsi
	addq	%rdx, %rsi
	xorl	%ecx, %ecx
	jmpq	*%rsi
LBB0_3:
	addl	%r13d, %r15d
	jmp	LBB0_10
LBB0_4:
	leaq	-48(%rbp), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	$1, %edx
	callq	*%r12
	movl	$-1, %ecx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.5:
	movl	-48(%rbp), %eax
	cmpl	%r13d, %eax
	jle	LBB0_18
## %bb.6:
	leal	(%r15,%r13), %esi
	cmpl	%esi, %eax
	jg	LBB0_18
## %bb.7:
	movl	%r13d, -48(%rbp)
	jmp	LBB0_19
LBB0_8:
	leaq	-48(%rbp), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	$1, %edx
	callq	*%r12
	movl	$-1, %ecx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.9:
	addl	-48(%rbp), %r15d
LBB0_10:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_elf_relocaddr
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rbx,%rcx)
	jmp	LBB0_23
LBB0_11:
	leaq	-48(%rbp), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	$1, %edx
	callq	*%r12
	movl	$-1, %ecx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.12:
	movl	-48(%rbp), %eax
	cmpl	%r13d, %eax
	jle	LBB0_20
## %bb.13:
	leal	(%r15,%r13), %esi
	cmpl	%esi, %eax
	jg	LBB0_20
## %bb.14:
	movl	%r13d, -48(%rbp)
	jmp	LBB0_21
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	callq	_printf
	movl	$-1, %ecx
	jmp	LBB0_24
LBB0_16:
	cmpl	$134, %ecx
	jne	LBB0_26
## %bb.17:
	callq	_elf_reloc_internal.cold.1
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_18:
	addl	%r15d, %eax
	movl	%eax, %esi
LBB0_19:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_elf_relocaddr
	movl	%eax, %ecx
	shrl	$16, %ecx
	btl	$15, %eax
	adcl	$0, %ecx
	movzwl	%cx, %eax
	jmp	LBB0_22
LBB0_20:
	addl	%r15d, %eax
	movl	%eax, %esi
LBB0_21:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_elf_relocaddr
	movzwl	%ax, %eax
LBB0_22:
	movl	%eax, (%rbx,%r14)
LBB0_23:
	xorl	%ecx, %ecx
LBB0_24:
	movl	%ecx, %eax
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	leaq	L_.str.1(%rip), %rdi
	movl	%ecx, %esi
	xorl	%eax, %eax
	callq	_panic
	ud2
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_24
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function elf_reloc_internal.cold.1
_elf_reloc_internal.cold.1:             ## @elf_reloc_internal.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_panic
	ud2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PPC only supports RELA relocations"

L_.str.1:                               ## @.str.1
	.asciz	"elf_reloc: unknown relocation mode %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"kldload: unexpected relocation type %d\n"

	.no_dead_strip	_elf_reloc_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elf_reloc_internal
_elf_reloc_internal:                    ; @elf_reloc_internal
	.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
                                        ; kill: def $w3 killed $w3 def $x3
	cmp	w3, #133
	b.ne	LBB0_24
; %bb.1:
	mov	x21, x5
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldp	w0, w24, [x2, #4]
                                        ; kill: def $w24 killed $w24 def $x24
	sxtw	x24, w24
	ldr	w25, [x2]
	bl	_ELF_R_TYPE
	mov	x23, x0
	ldr	w0, [x22, #4]
	bl	_ELF_R_SYM
	sub	w8, w23, #128
	cmp	w8, #4
	b.hi	LBB0_15
; %bb.2:
	mov	x1, x0
	mov	w0, #0
	sxtw	x22, w20
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	add	w1, w25, w20
	b	LBB0_10
LBB0_4:
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	blr	x21
	cbnz	w0, LBB0_16
; %bb.5:
	ldr	w8, [sp, #12]
	cmp	w8, w20
	b.le	LBB0_17
; %bb.6:
	add	w1, w25, w20
	cmp	w8, w1
	b.gt	LBB0_17
; %bb.7:
	str	w20, [sp, #12]
	b	LBB0_18
LBB0_8:
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	blr	x21
	cbnz	w0, LBB0_16
; %bb.9:
	ldr	w8, [sp, #12]
	add	w1, w8, w25
LBB0_10:
	mov	x0, x19
	bl	_elf_relocaddr
	mov	x8, x0
	mov	w0, #0
	b	LBB0_22
LBB0_11:
	add	x3, sp, #12
	mov	x0, x19
	mov	w2, #1
	blr	x21
	cbnz	w0, LBB0_16
; %bb.12:
	ldr	w8, [sp, #12]
	cmp	w8, w20
	b.le	LBB0_19
; %bb.13:
	add	w1, w25, w20
	cmp	w8, w1
	b.gt	LBB0_19
; %bb.14:
	str	w20, [sp, #12]
	b	LBB0_20
LBB0_15:
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	bl	_printf
LBB0_16:
	mov	w0, #-1
	b	LBB0_23
LBB0_17:
	add	w1, w8, w25
LBB0_18:
	mov	x0, x19
	bl	_elf_relocaddr
	mov	x8, x0
	mov	w0, #0
	ubfx	w9, w8, #15, #1
	add	w8, w9, w8, lsr #16
	b	LBB0_21
LBB0_19:
	add	w1, w8, w25
LBB0_20:
	mov	x0, x19
	bl	_elf_relocaddr
	mov	x8, x0
	mov	w0, #0
LBB0_21:
	and	w8, w8, #0xffff
LBB0_22:
	str	w8, [x22, x24]
LBB0_23:
	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_24:
	cmp	w3, #134
	b.ne	LBB0_26
; %bb.25:
	bl	_elf_reloc_internal.cold.1
LBB0_26:
	str	x3, [sp]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
	brk	#0x1
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_23-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2                               ; -- Begin function elf_reloc_internal.cold.1
_elf_reloc_internal.cold.1:             ; @elf_reloc_internal.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
	brk	#0x1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PPC only supports RELA relocations"

l_.str.1:                               ; @.str.1
	.asciz	"elf_reloc: unknown relocation mode %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"kldload: unexpected relocation type %d\n"

	.no_dead_strip	_elf_reloc_internal
.subsections_via_symbols
