	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfs_set
_dfs_set:                               ## @dfs_set
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	_SPR_HID1@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_mfspr
	movq	_HID1_DFS2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_HID1_DFS4@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %ebx
	orl	%ecx, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r14), %eax
	cmpl	$2500, %eax                     ## imm = 0x9C4
	je	LBB0_5
## %bb.3:
	cmpl	$5000, %eax                     ## imm = 0x1388
	jne	LBB0_6
## %bb.4:
	orl	%ecx, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
LBB0_5:
	orl	%edx, %ebx
LBB0_6:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_powerpc_sync
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_mtspr
	xorl	%eax, %eax
	callq	_powerpc_sync
	xorl	%eax, %eax
	callq	_isync
LBB0_7:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SPR_HID1,4,2                   ## @SPR_HID1
	.comm	_HID1_DFS2,4,2                  ## @HID1_DFS2
	.comm	_HID1_DFS4,4,2                  ## @HID1_DFS4
	.no_dead_strip	_dfs_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfs_set
_dfs_set:                               ; @dfs_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_2
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x20, _SPR_HID1@GOTPAGE
Lloh1:
	ldr	x20, [x20, _SPR_HID1@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_mfspr
Lloh2:
	adrp	x8, _HID1_DFS2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HID1_DFS2@GOTPAGEOFF]
Lloh4:
	adrp	x9, _HID1_DFS4@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HID1_DFS4@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w10, w0, w10
	ldr	w11, [x19]
	orr	w9, w10, w9
	mov	w12, #5000
	orr	w8, w10, w8
	cmp	w11, w12
	csel	w8, w10, w8, ne
	cmp	w11, #2500
	csel	w19, w9, w8, eq
	bl	_powerpc_sync
	ldr	w0, [x20]
	mov	x1, x19
	bl	_mtspr
	bl	_powerpc_sync
	bl	_isync
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SPR_HID1,4,2                   ; @SPR_HID1
	.comm	_HID1_DFS2,4,2                  ; @HID1_DFS2
	.comm	_HID1_DFS4,4,2                  ; @HID1_DFS4
	.no_dead_strip	_dfs_set
.subsections_via_symbols
