	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mid_get_fuse_settings
_mid_get_fuse_settings:                 ## @mid_get_fuse_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	16(%rdi), %rbx
	movl	(%rax), %edi
	callq	_pci_domain_nr
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pci_get_domain_bus_and_slot
	movl	$0, -28(%rbp)
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$208, %esi
	movl	$-796850688, %edx               ## imm = 0xD0810600
	callq	_pci_write_config_dword
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movl	$212, %esi
	callq	_pci_read_config_dword
	movq	%r14, %rdi
	callq	_IS_MRST
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	$2048, %eax                     ## imm = 0x800
	andl	-28(%rbp), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_4
LBB0_8:
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
LBB0_2:
	movl	(%rbx), %eax
LBB0_4:
	testl	%eax, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	cmpl	$0, (%rbx)
	setne	%al
	sete	%cl
	movl	%ecx, 8(%rbx)
	movl	%eax, 4(%rbx)
	movl	-28(%rbp), %eax
	movl	%eax, 12(%rbx)
	movq	%r15, %rdi
	movl	$208, %esi
	movl	$-796849920, %edx               ## imm = 0xD0810900
	callq	_pci_write_config_dword
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	movl	$212, %esi
	callq	_pci_read_config_dword
	movl	(%r14), %edi
	movl	-28(%rbp), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_dbg
	movl	-28(%rbp), %eax
	movl	%eax, 16(%rbx)
	movl	%eax, %edx
	shrl	$12, %edx
	andl	$7, %edx
	cmpl	$3, %edx
	jae	LBB0_5
## %bb.6:
	leaq	l_switch.table.mid_get_fuse_settings(%rip), %rax
	movl	(%rax,%rdx,4), %edx
	jmp	LBB0_7
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_warn
	xorl	%edx, %edx
LBB0_7:
	movl	%edx, 20(%rbx)
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_pci_dev_put
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"internal display is %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"LVDS display"

L_.str.2:                               ## @.str.2
	.asciz	"MIPI display"

L_.str.3:                               ## @.str.3
	.asciz	"SKU values is 0x%x.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid SKU values, SKU value = 0x%08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"LNC core clk is %dMHz.\n"

	.comm	_FB_MIPI_DISABLE,4,2            ## @FB_MIPI_DISABLE
	.comm	_FB_REG06,4,2                   ## @FB_REG06
	.comm	_FB_REG09,4,2                   ## @FB_REG09
	.comm	_FB_SKU_MASK,4,2                ## @FB_SKU_MASK
	.comm	_FB_SKU_SHIFT,4,2               ## @FB_SKU_SHIFT
	.no_dead_strip	_mid_get_fuse_settings
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.mid_get_fuse_settings
l_switch.table.mid_get_fuse_settings:
	.long	200                             ## 0xc8
	.long	100                             ## 0x64
	.long	166                             ## 0xa6

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mid_get_fuse_settings
_mid_get_fuse_settings:                 ; @mid_get_fuse_settings
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldp	x8, x21, [x0, #8]
	ldr	w0, [x8]
	bl	_pci_domain_nr
	mov	w1, #0
	mov	w2, #0
	bl	_pci_get_domain_bus_and_slot
	str	wzr, [sp, #12]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	w22, #1536
	movk	w22, #53377, lsl #16
	mov	w1, #208
	mov	w2, #1536
	movk	w2, #53377, lsl #16
	bl	_pci_write_config_dword
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #212
	bl	_pci_read_config_dword
	mov	x0, x19
	bl	_IS_MRST
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #12]
	and	w8, w8, #0x800
	str	w8, [x21]
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_WARN_ON
LBB0_4:
	ldr	w8, [x21]
LBB0_5:
Lloh0:
	adrp	x9, l_.str.1@PAGE
Lloh1:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh2:
	adrp	x10, l_.str.2@PAGE
Lloh3:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	w8, #0
	csel	x1, x10, x9, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	ldr	w8, [x21]
	cmp	w8, #0
	cset	w8, ne
	cset	w9, eq
	stp	w8, w9, [x21, #4]
	ldr	w8, [sp, #12]
	str	w8, [x21, #12]
	add	w2, w22, #768
	mov	x0, x20
	mov	w1, #208
	bl	_pci_write_config_dword
	add	x2, sp, #12
	mov	x0, x20
	mov	w1, #212
	bl	_pci_read_config_dword
	ldr	w0, [x19]
	ldr	w2, [sp, #12]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [sp, #12]
	ubfx	x2, x8, #12, #3
	str	w8, [x21, #16]
	cmp	w2, #3
	b.hs	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, l_switch.table.mid_get_fuse_settings@PAGE
Lloh9:
	add	x8, x8, l_switch.table.mid_get_fuse_settings@PAGEOFF
	ldr	w2, [x8, x2, lsl #2]
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_warn
	mov	w2, #0
LBB0_8:
	str	w2, [x21, #20]
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	mov	x0, x20
	bl	_pci_dev_put
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"internal display is %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"LVDS display"

l_.str.2:                               ; @.str.2
	.asciz	"MIPI display"

l_.str.3:                               ; @.str.3
	.asciz	"SKU values is 0x%x.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid SKU values, SKU value = 0x%08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"LNC core clk is %dMHz.\n"

	.comm	_FB_MIPI_DISABLE,4,2            ; @FB_MIPI_DISABLE
	.comm	_FB_REG06,4,2                   ; @FB_REG06
	.comm	_FB_REG09,4,2                   ; @FB_REG09
	.comm	_FB_SKU_MASK,4,2                ; @FB_SKU_MASK
	.comm	_FB_SKU_SHIFT,4,2               ; @FB_SKU_SHIFT
	.no_dead_strip	_mid_get_fuse_settings
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.mid_get_fuse_settings
l_switch.table.mid_get_fuse_settings:
	.long	200                             ; 0xc8
	.long	100                             ; 0x64
	.long	166                             ; 0xa6

.subsections_via_symbols
