	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r13
	cmpl	$133, %ecx
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_3
## %bb.1:
	cmpl	$134, %ecx
	jne	LBB0_8
## %bb.2:
	movq	(%r12), %rdi
	addq	%r13, %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_load_ptr
	movq	%rax, %r14
	movl	8(%r12), %edi
	callq	_ELF_R_TYPE
	movl	%eax, %r15d
	movl	8(%r12), %edi
	jmp	LBB0_4
LBB0_3:
	movq	(%r12), %rax
	addq	%r13, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r14
	movl	16(%r12), %edi
	callq	_ELF_R_TYPE
	movl	%eax, %r15d
	movl	16(%r12), %edi
LBB0_4:
	callq	_ELF_R_SYM
	testl	%ebx, %ebx
	je	LBB0_9
LBB0_5:
	xorl	%ebx, %ebx
	cmpl	$128, %r15d
	jne	LBB0_19
## %bb.6:
	addq	%r13, %r14
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	callq	_elf_relocaddr
	movq	%rax, %r14
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_load_ptr
	cmpq	%r14, %rax
	je	LBB0_19
## %bb.7:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_store_ptr
	jmp	LBB0_19
LBB0_8:
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %esi
	callq	_panic
                                        ## implicit-def: $r14
                                        ## implicit-def: $r15d
                                        ## implicit-def: $eax
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
	testl	%ebx, %ebx
	jne	LBB0_5
LBB0_9:
	leal	-128(%r15), %ecx
	cmpl	$4, %ecx
	ja	LBB0_13
## %bb.10:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	xorl	%ebx, %ebx
	jmpq	*%rcx
LBB0_11:
	leaq	-64(%rbp), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	$1, %edx
	callq	*-72(%rbp)                      ## 8-byte Folded Reload
	movl	$-1, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.12:
	movq	-64(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_15
LBB0_14:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_15:
	movl	$-1, %ebx
	jmp	LBB0_19
LBB0_16:
	leaq	-64(%rbp), %rcx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	$1, %edx
	callq	*-72(%rbp)                      ## 8-byte Folded Reload
	movl	$-1, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movq	-64(%rbp), %rbx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_load_ptr
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
LBB0_18:
	callq	_store_ptr
	xorl	%ebx, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown reloc type %d\n"

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

L_str:                                  ## @str
	.asciz	"kldload: unexpected R_COPY relocation"

	.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
	mov	x20, x5
	mov	x23, x4
	mov	x26, x2
	mov	x22, x1
	mov	x21, x0
	cmp	w3, #133
	b.eq	LBB0_3
; %bb.1:
	cmp	w3, #134
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x26]
	add	x19, x8, x22
	mov	x0, x19
	bl	_load_ptr
	mov	x24, x0
	ldr	w0, [x26, #8]
	bl	_ELF_R_TYPE
	mov	x25, x0
	ldr	w0, [x26, #8]
	b	LBB0_4
LBB0_3:
	ldp	x8, x24, [x26]
	add	x19, x8, x22
	ldr	w0, [x26, #16]
	bl	_ELF_R_TYPE
	mov	x25, x0
	ldr	w0, [x26, #16]
LBB0_4:
	bl	_ELF_R_SYM
	mov	x1, x0
	cbz	w23, LBB0_9
LBB0_5:
	cmp	w25, #128
	b.ne	LBB0_20
; %bb.6:
	add	x1, x24, x22
	mov	x0, x21
	bl	_elf_relocaddr
	mov	x20, x0
	mov	x0, x19
	bl	_load_ptr
	cmp	x0, x20
	b.eq	LBB0_20
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	b	LBB0_19
LBB0_8:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x3
	bl	_panic
                                        ; implicit-def: $x24
                                        ; implicit-def: $w25
                                        ; implicit-def: $w1
                                        ; implicit-def: $x19
	cbnz	w23, LBB0_5
LBB0_9:
	sub	w8, w25, #128
	cmp	w8, #4
	b.hi	LBB0_13
; %bb.10:
	mov	w0, #0
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_11
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_11:
	add	x3, sp, #8
	mov	x0, x21
	mov	w2, #1
	blr	x20
	cbnz	w0, LBB0_16
; %bb.12:
	ldr	x1, [sp, #8]
	b	LBB0_18
LBB0_13:
	str	x25, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	b	LBB0_16
LBB0_14:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_16
LBB0_15:
	add	x3, sp, #8
	mov	x0, x21
	mov	w2, #1
	blr	x20
	cbz	w0, LBB0_17
LBB0_16:
	mov	w0, #-1
	b	LBB0_21
LBB0_17:
	ldr	x20, [sp, #8]
	mov	x0, x19
	bl	_load_ptr
	add	x1, x0, x20
LBB0_18:
	mov	x0, x19
LBB0_19:
	bl	_store_ptr
LBB0_20:
	mov	w0, #0
LBB0_21:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_11)>>2
	.byte	(LBB0_21-LBB0_11)>>2
	.byte	(LBB0_11-LBB0_11)>>2
	.byte	(LBB0_14-LBB0_11)>>2
	.byte	(LBB0_15-LBB0_11)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown reloc type %d\n"

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

l_str:                                  ; @str
	.asciz	"kldload: unexpected R_COPY relocation"

	.no_dead_strip	_elf_reloc_internal
.subsections_via_symbols
