	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dfs_get
_dfs_get:                               ## @dfs_get
	.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, %rbx
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %r15
	movq	_CPUFREQ_VAL_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_memset
	movq	_SPR_HID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mfspr
	movl	$10000, (%rbx)                  ## imm = 0x2710
	movq	_HID1_DFS2@GOTPCREL(%rip), %rdx
	movl	$5000, %ecx                     ## imm = 0x1388
	testl	%eax, (%rdx)
	je	LBB0_3
LBB0_5:
	movl	%ecx, (%rbx)
LBB0_6:
	movl	%r14d, 4(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, (%r15)
	je	LBB0_6
## %bb.4:
	movq	_HID1_DFS4@GOTPCREL(%rip), %rdx
	movl	$2500, %ecx                     ## imm = 0x9C4
	testl	%eax, (%rdx)
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ## @CPUFREQ_VAL_UNKNOWN
	.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_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dfs_get
_dfs_get:                               ; @dfs_get
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_device_get_softc
	mov	x21, x0
Lloh0:
	adrp	x8, _CPUFREQ_VAL_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPUFREQ_VAL_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	bl	_memset
Lloh3:
	adrp	x8, _SPR_HID1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPR_HID1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_mfspr
	mov	w8, #10000
	str	w8, [x19]
Lloh6:
	adrp	x8, _HID1_DFS2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID1_DFS2@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	mov	w8, #5000
	b	LBB0_7
LBB0_3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_4:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.5:
Lloh12:
	adrp	x8, _HID1_DFS4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HID1_DFS4@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.6:
	mov	w8, #2500
LBB0_7:
	str	w8, [x19]
LBB0_8:
	mov	w0, #0
	str	w20, [x19, #4]
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CPUFREQ_VAL_UNKNOWN,4,2        ; @CPUFREQ_VAL_UNKNOWN
	.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_get
.subsections_via_symbols
