	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function df_v3_6_pmc_get_ctrl_settings
_df_v3_6_pmc_get_ctrl_settings:         ## @df_v3_6_pmc_get_ctrl_settings
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r13
	movl	%esi, %r15d
	movl	$1, %edx
	movq	%r13, %rcx
	movq	%r12, %r8
	callq	_df_v3_6_pmc_get_addr
	movq	(%r13), %rsi
	movq	(%r12), %rdx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.4:
	movl	%r15d, %edi
	callq	_DF_V3_6_GET_EVENT
                                        ## kill: def $eax killed $eax def $rax
	andl	$63, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_DF_V3_6_GET_UNITMASK
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_DF_V3_6_GET_INSTANCE
	movl	%eax, %r9d
	shrl	$2, %r9d
	andl	$15, %r9d
	andl	$15, %r14d
	shll	$8, %r14d
	movl	%eax, %ecx
	shll	$6, %ecx
	movzbl	%cl, %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addl	%r14d, %edx
	addl	$4194304, %edx                  ## imm = 0x400000
	orq	%rcx, %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdx, (%rsi)
	shll	$23, %eax
	andl	$1610612736, %eax               ## imm = 0x60000000
	orq	%rax, %r9
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r9, (%rax)
	movq	(%r13), %rdx
	movq	(%r12), %rcx
	movq	(%rsi), %r8
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_DRM_DEBUG_DRIVER
	jmp	LBB0_5
LBB0_2:
	xorl	%edx, %edx
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[DF PMC] addressing not retrieved! Lo: %x, Hi: %x"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"config=%llx addr=%08x:%08x val=%08x:%08x"

	.no_dead_strip	_df_v3_6_pmc_get_ctrl_settings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function df_v3_6_pmc_get_ctrl_settings
_df_v3_6_pmc_get_ctrl_settings:         ; @df_v3_6_pmc_get_ctrl_settings
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	w2, #1
	mov	x3, x23
	mov	x4, x21
	bl	_df_v3_6_pmc_get_addr
	ldr	x1, [x23]
	ldr	x2, [x21]
	cbz	x1, LBB0_3
; %bb.1:
	cbz	x2, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_DF_V3_6_GET_EVENT
	and	w25, w0, #0x3f
	mov	x0, x19
	bl	_DF_V3_6_GET_UNITMASK
	mov	x24, x0
	mov	x0, x19
	bl	_DF_V3_6_GET_INSTANCE
	lsl	w8, w0, #6
	and	x8, x8, #0xc0
	bfi	w25, w24, #8, #4
	orr	w9, w25, #0x400000
	orr	x8, x8, x9
	str	x8, [x20]
	lsl	w8, w0, #23
	and	x5, x8, #0x60000000
	bfxil	x5, x0, #2, #4
	str	x5, [x22]
	ldr	x2, [x23]
	ldr	x3, [x21]
	ldr	x4, [x20]
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_DRIVER
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[DF PMC] addressing not retrieved! Lo: %x, Hi: %x"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"config=%llx addr=%08x:%08x val=%08x:%08x"

	.no_dead_strip	_df_v3_6_pmc_get_ctrl_settings
.subsections_via_symbols
