	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc_type_of_stub
_ppc_type_of_stub:                      ## @ppc_type_of_stub
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rcx, %r14
	movq	(%rdx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	32(%rax), %rcx
	movq	%rax, %r8
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.2:
	cmpq	$0, 40(%rcx)
	cmoveq	%rax, %rcx
	movq	%rcx, %r8
LBB0_3:
	cmpl	$-1, (%r8)
	je	LBB0_9
## %bb.4:
	movq	24(%r8), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.5:
	movq	(%rsi), %rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rbx)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	$-1, 8(%rbx)
	je	LBB0_8
## %bb.19:
	movq	%r8, (%rdx)
	movq	_ppc_stub_plt_call@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_9:
	movq	8(%r8), %rcx
	movq	_bfd_link_hash_defined@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	movq	_bfd_link_hash_defweak@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	cmpq	%rbx, %rcx
	je	LBB0_11
## %bb.10:
	cmpq	%r9, %rcx
	jne	LBB0_12
LBB0_11:
	movq	16(%r8), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_15
LBB0_12:
	movq	8(%rax), %rdx
	movq	_ppc_stub_none@GOTPCREL(%rip), %rcx
	cmpq	%rbx, %rdx
	je	LBB0_14
## %bb.13:
	cmpq	%r9, %rdx
	jne	LBB0_18
LBB0_14:
	movq	16(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_18
LBB0_15:
	movq	(%rdi), %rbx
	movq	8(%rdi), %rax
	addq	(%rax), %rbx
	movl	16(%rsi), %edi
	addq	8(%rsi), %rbx
	callq	_ELF64_R_TYPE
	movq	_R_PPC64_REL24@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$33554432, %eax                 ## imm = 0x2000000
	movl	$32768, %ecx                    ## imm = 0x8000
	cmoveq	%rax, %rcx
	subq	%rbx, %r14
	addq	%rcx, %r14
	addq	%rcx, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_16
## %bb.17:
	movq	_ppc_stub_none@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
LBB0_16:
	movq	_ppc_stub_long_branch@GOTPCREL(%rip), %rcx
LBB0_18:
	movl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ppc_stub_plt_call,4,2          ## @ppc_stub_plt_call
	.comm	_bfd_link_hash_defined,8,3      ## @bfd_link_hash_defined
	.comm	_bfd_link_hash_defweak,8,3      ## @bfd_link_hash_defweak
	.comm	_ppc_stub_none,4,2              ## @ppc_stub_none
	.comm	_R_PPC64_REL24,4,2              ## @R_PPC64_REL24
	.comm	_ppc_stub_long_branch,4,2       ## @ppc_stub_long_branch
	.no_dead_strip	_ppc_type_of_stub
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc_type_of_stub
_ppc_type_of_stub:                      ; @ppc_type_of_stub
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	ldr	x8, [x2]
	cbz	x8, LBB0_14
; %bb.1:
	ldr	x10, [x8, #32]
	mov	x9, x8
	cbz	x10, LBB0_3
; %bb.2:
	ldr	x9, [x10, #40]
	cmp	x9, #0
	csel	x9, x8, x10, eq
LBB0_3:
	ldr	w10, [x9]
	cmn	w10, #1
	b.eq	LBB0_10
; %bb.4:
	ldr	x10, [x9, #24]
	cbz	x10, LBB0_10
; %bb.5:
	ldr	x11, [x1]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x10, #16]
	cbz	x10, LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10]
	cmp	x12, x11
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x12, [x10, #8]
	cmn	x12, #1
	b.eq	LBB0_6
; %bb.9:
	str	x9, [x2]
Lloh0:
	adrp	x8, _ppc_stub_plt_call@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ppc_stub_plt_call@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
	ldr	x12, [x9, #8]
Lloh2:
	adrp	x10, _bfd_link_hash_defined@GOTPAGE
Lloh3:
	ldr	x10, [x10, _bfd_link_hash_defined@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	adrp	x11, _bfd_link_hash_defweak@GOTPAGE
Lloh6:
	ldr	x11, [x11, _bfd_link_hash_defweak@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x12, x10
	ccmp	x12, x11, #4, ne
	b.ne	LBB0_12
; %bb.11:
	ldr	x9, [x9, #16]
	ldr	x9, [x9]
	cbnz	x9, LBB0_14
LBB0_12:
	ldr	x9, [x8, #8]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_15
; %bb.13:
	ldr	x8, [x8, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
LBB0_14:
Lloh8:
	adrp	x20, _ppc_stub_none@GOTPAGE
Lloh9:
	ldr	x20, [x20, _ppc_stub_none@GOTPAGEOFF]
	ldp	x21, x8, [x0]
	ldr	x22, [x8]
	ldr	x23, [x1, #8]
	ldr	w0, [x1, #16]
	bl	_ELF64_R_TYPE
Lloh10:
	adrp	x8, _R_PPC64_REL24@GOTPAGE
Lloh11:
	ldr	x8, [x8, _R_PPC64_REL24@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, w8
	mov	w8, #32768
	mov	w9, #33554432
	csel	x8, x9, x8, eq
	add	x9, x21, x22
	add	x9, x9, x23
	sub	x9, x19, x9
	add	x9, x9, x8
Lloh13:
	adrp	x10, _ppc_stub_long_branch@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ppc_stub_long_branch@GOTPAGEOFF]
	cmp	x9, x8, lsl #1
	csel	x8, x20, x10, lt
	b	LBB0_16
LBB0_15:
Lloh15:
	adrp	x8, _ppc_stub_none@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ppc_stub_none@GOTPAGEOFF]
LBB0_16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ppc_stub_plt_call,4,2          ; @ppc_stub_plt_call
	.comm	_bfd_link_hash_defined,8,3      ; @bfd_link_hash_defined
	.comm	_bfd_link_hash_defweak,8,3      ; @bfd_link_hash_defweak
	.comm	_ppc_stub_none,4,2              ; @ppc_stub_none
	.comm	_R_PPC64_REL24,4,2              ; @R_PPC64_REL24
	.comm	_ppc_stub_long_branch,4,2       ; @ppc_stub_long_branch
	.no_dead_strip	_ppc_type_of_stub
.subsections_via_symbols
