	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_sprg
_extract_sprg:                          ## @extract_sprg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	shrq	$16, %rax
	movl	%eax, %r10d
	andl	$31, %r10d
	leaq	-16(%r10), %r8
	cmpq	$4, %r8
	jb	LBB0_5
## %bb.1:
	movq	_PPC_OPCODE_BOOKE@GOTPCREL(%rip), %r9
	movq	_PPC_OPCODE_405@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%r9), %ecx
	testl	%esi, %ecx
	je	LBB0_6
## %bb.2:
	cmpq	$8, %r8
	jb	LBB0_5
## %bb.3:
	testl	$524544, %edi                   ## imm = 0x80100
	jne	LBB0_6
## %bb.4:
	cmpl	$3, %r10d
	ja	LBB0_7
	jmp	LBB0_6
LBB0_5:
	testl	$524288, %edi                   ## imm = 0x80000
	je	LBB0_7
LBB0_6:
	movl	$1, (%rdx)
LBB0_7:
	andl	$7, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPC_OPCODE_BOOKE,4,2           ## @PPC_OPCODE_BOOKE
	.comm	_PPC_OPCODE_405,4,2             ## @PPC_OPCODE_405
	.no_dead_strip	_extract_sprg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_sprg
_extract_sprg:                          ; @extract_sprg
	.cfi_startproc
; %bb.0:
	ubfx	x8, x0, #16, #5
	sub	x9, x8, #16
	cmp	x9, #4
	b.lo	LBB0_5
; %bb.1:
Lloh0:
	adrp	x10, _PPC_OPCODE_BOOKE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PPC_OPCODE_BOOKE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _PPC_OPCODE_405@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PPC_OPCODE_405@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w1
	b.eq	LBB0_6
; %bb.2:
	cmp	x9, #8
	b.lo	LBB0_5
; %bb.3:
	mov	w9, #256
	movk	w9, #8, lsl #16
	tst	x0, x9
	b.ne	LBB0_6
; %bb.4:
	cmp	x8, #3
	b.hi	LBB0_7
	b	LBB0_6
LBB0_5:
	tbz	w0, #19, LBB0_7
LBB0_6:
	mov	w8, #1
	str	w8, [x2]
LBB0_7:
	ubfx	x0, x0, #16, #3
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PPC_OPCODE_BOOKE,4,2           ; @PPC_OPCODE_BOOKE
	.comm	_PPC_OPCODE_405,4,2             ; @PPC_OPCODE_405
	.no_dead_strip	_extract_sprg
.subsections_via_symbols
