	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppc_set_cpu
_ppc_set_cpu:                           ## @ppc_set_cpu
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ppc_cpu@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	movq	_PPC_OPCODE_ANY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, %eax
	jne	LBB0_3
## %bb.1:
	movq	_ppc_obj64@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_PPC_OPCODE_PPC@GOTPCREL(%rip), %rcx
	movq	_PPC_OPCODE_CLASSIC@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	_PPC_OPCODE_64@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_3
LBB0_4:
	movq	_TARGET_OS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_TARGET_CPU@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$3, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	movb	3(%r15), %al
	addb	$-52, %al
	cmpb	$5, %al
	ja	LBB0_9
## %bb.6:
	movq	_PPC_OPCODE_COMMON@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	$7, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_as_fatal                       ## TAILCALL
LBB0_10:
	movq	_PPC_OPCODE_POWER@GOTPCREL(%rip), %rax
LBB0_7:
	movq	_PPC_OPCODE_32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	orl	(%rax), %ecx
	orl	%ecx, (%rbx)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_PPC_OPCODE_PPC@GOTPCREL(%rip), %rax
	movq	_PPC_OPCODE_CLASSIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_PPC_OPCODE_32@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_TARGET_OS,8,3                  ## @TARGET_OS
	.comm	_TARGET_CPU,8,3                 ## @TARGET_CPU
	.comm	_ppc_cpu,4,2                    ## @ppc_cpu
	.comm	_PPC_OPCODE_ANY,4,2             ## @PPC_OPCODE_ANY
	.comm	_ppc_obj64,8,3                  ## @ppc_obj64
	.comm	_PPC_OPCODE_PPC,4,2             ## @PPC_OPCODE_PPC
	.comm	_PPC_OPCODE_CLASSIC,4,2         ## @PPC_OPCODE_CLASSIC
	.comm	_PPC_OPCODE_64,4,2              ## @PPC_OPCODE_64
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aix"

	.comm	_PPC_OPCODE_COMMON,4,2          ## @PPC_OPCODE_COMMON
	.comm	_PPC_OPCODE_32,4,2              ## @PPC_OPCODE_32
L_.str.1:                               ## @.str.1
	.asciz	"aix3"

	.comm	_PPC_OPCODE_POWER,4,2           ## @PPC_OPCODE_POWER
L_.str.2:                               ## @.str.2
	.asciz	"rs6000"

L_.str.3:                               ## @.str.3
	.asciz	"powerpc"

L_.str.4:                               ## @.str.4
	.asciz	"Unknown default cpu = %s, os = %s"

	.no_dead_strip	_ppc_set_cpu
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppc_set_cpu
_ppc_set_cpu:                           ; @ppc_set_cpu
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _ppc_cpu@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ppc_cpu@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _PPC_OPCODE_ANY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PPC_OPCODE_ANY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.ne	LBB0_14
; %bb.1:
Lloh5:
	adrp	x9, _ppc_obj64@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ppc_obj64@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cbz	x9, LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _PPC_OPCODE_PPC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PPC_OPCODE_PPC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _PPC_OPCODE_CLASSIC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PPC_OPCODE_CLASSIC@GOTPAGEOFF]
Lloh13:
	adrp	x11, _PPC_OPCODE_64@GOTPAGE
Lloh14:
	ldr	x11, [x11, _PPC_OPCODE_64@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
Lloh16:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w8, w8, w11
	b	LBB0_13
LBB0_3:
Lloh17:
	adrp	x8, _TARGET_OS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TARGET_OS@GOTPAGEOFF]
Lloh19:
	ldr	x19, [x8]
Lloh20:
	adrp	x8, _TARGET_CPU@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TARGET_CPU@GOTPAGEOFF]
Lloh22:
	ldr	x20, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #3
	bl	_strncmp
	cbnz	x0, LBB0_6
; %bb.4:
	ldrb	w8, [x19, #3]
	sub	w8, w8, #52
	cmp	w8, #5
	b.hi	LBB0_6
; %bb.5:
Lloh25:
	adrp	x8, _PPC_OPCODE_COMMON@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PPC_OPCODE_COMMON@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_10
; %bb.7:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.8:
Lloh31:
	adrp	x1, l_.str.3@PAGE
Lloh32:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	w2, #7
	bl	_strncmp
	cbz	x0, LBB0_15
; %bb.9:
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_as_fatal
LBB0_10:
Lloh35:
	adrp	x8, _PPC_OPCODE_POWER@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PPC_OPCODE_POWER@GOTPAGEOFF]
LBB0_11:
Lloh37:
	adrp	x9, _PPC_OPCODE_32@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PPC_OPCODE_32@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh39:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_12:
	ldr	w9, [x21]
	orr	w8, w8, w9
LBB0_13:
	str	w8, [x21]
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh40:
	adrp	x8, _PPC_OPCODE_PPC@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PPC_OPCODE_PPC@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _PPC_OPCODE_CLASSIC@GOTPAGE
Lloh44:
	ldr	x9, [x9, _PPC_OPCODE_CLASSIC@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
Lloh46:
	adrp	x10, _PPC_OPCODE_32@GOTPAGE
Lloh47:
	ldr	x10, [x10, _PPC_OPCODE_32@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh48:
	ldr	w9, [x10]
	orr	w8, w8, w9
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_TARGET_OS,8,3                  ; @TARGET_OS
	.comm	_TARGET_CPU,8,3                 ; @TARGET_CPU
	.comm	_ppc_cpu,4,2                    ; @ppc_cpu
	.comm	_PPC_OPCODE_ANY,4,2             ; @PPC_OPCODE_ANY
	.comm	_ppc_obj64,8,3                  ; @ppc_obj64
	.comm	_PPC_OPCODE_PPC,4,2             ; @PPC_OPCODE_PPC
	.comm	_PPC_OPCODE_CLASSIC,4,2         ; @PPC_OPCODE_CLASSIC
	.comm	_PPC_OPCODE_64,4,2              ; @PPC_OPCODE_64
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aix"

	.comm	_PPC_OPCODE_COMMON,4,2          ; @PPC_OPCODE_COMMON
	.comm	_PPC_OPCODE_32,4,2              ; @PPC_OPCODE_32
l_.str.1:                               ; @.str.1
	.asciz	"aix3"

	.comm	_PPC_OPCODE_POWER,4,2           ; @PPC_OPCODE_POWER
l_.str.2:                               ; @.str.2
	.asciz	"rs6000"

l_.str.3:                               ; @.str.3
	.asciz	"powerpc"

l_.str.4:                               ; @.str.4
	.asciz	"Unknown default cpu = %s, os = %s"

	.no_dead_strip	_ppc_set_cpu
.subsections_via_symbols
