	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cik_read_disabled_bios
_cik_read_disabled_bios:                ## @cik_read_disabled_bios
	.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	%rdi, %r14
	movq	_mmBUS_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32
	movl	%eax, %r13d
	cmpq	$0, (%r14)
	je	LBB0_1
## %bb.2:
	movq	_mmD1VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_mmD2VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_mmVGA_RENDER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	_ixROM_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32_SMC
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_BUS_CNTL__BIOS_ROM_DIS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r13d, %esi
	callq	_WREG32
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.4:
	movq	_mmD1VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_D1VGA_CONTROL__D1VGA_MODE_ENABLE_MASK@GOTPCREL(%rip), %rax
	movq	_D1VGA_CONTROL__D1VGA_TIMING_SELECT_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%rax), %esi
	notl	%esi
	andl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	callq	_WREG32
	movq	_mmD2VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	movq	_D1VGA_CONTROL__D1VGA_MODE_ENABLE_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	notl	%esi
	andl	-48(%rbp), %esi                 ## 4-byte Folded Reload
	callq	_WREG32
	movq	_mmVGA_RENDER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VGA_RENDER_CONTROL__VGA_VSTATUS_CNTL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	callq	_WREG32
LBB0_5:
	movq	_ixROM_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ROM_CNTL__SCK_OVERWRITE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r15d, %esi
	callq	_WREG32_SMC
	movq	%r14, %rdi
	callq	_amdgpu_read_bios
	movl	%eax, %r12d
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_WREG32
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.6:
	movq	_mmD1VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_mmD2VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_mmVGA_RENDER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
LBB0_7:
	movq	_ixROM_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_WREG32_SMC
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmBUS_CNTL,4,2                 ## @mmBUS_CNTL
	.comm	_mmD1VGA_CONTROL,4,2            ## @mmD1VGA_CONTROL
	.comm	_mmD2VGA_CONTROL,4,2            ## @mmD2VGA_CONTROL
	.comm	_mmVGA_RENDER_CONTROL,4,2       ## @mmVGA_RENDER_CONTROL
	.comm	_ixROM_CNTL,4,2                 ## @ixROM_CNTL
	.comm	_BUS_CNTL__BIOS_ROM_DIS_MASK,4,2 ## @BUS_CNTL__BIOS_ROM_DIS_MASK
	.comm	_D1VGA_CONTROL__D1VGA_MODE_ENABLE_MASK,4,2 ## @D1VGA_CONTROL__D1VGA_MODE_ENABLE_MASK
	.comm	_D1VGA_CONTROL__D1VGA_TIMING_SELECT_MASK,4,2 ## @D1VGA_CONTROL__D1VGA_TIMING_SELECT_MASK
	.comm	_VGA_RENDER_CONTROL__VGA_VSTATUS_CNTL_MASK,4,2 ## @VGA_RENDER_CONTROL__VGA_VSTATUS_CNTL_MASK
	.comm	_ROM_CNTL__SCK_OVERWRITE_MASK,4,2 ## @ROM_CNTL__SCK_OVERWRITE_MASK
	.no_dead_strip	_cik_read_disabled_bios
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cik_read_disabled_bios
_cik_read_disabled_bios:                ; @cik_read_disabled_bios
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x27, _mmBUS_CNTL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _mmBUS_CNTL@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_RREG32
	mov	x20, x0
	ldr	x8, [x19]
Lloh2:
	adrp	x26, _mmD1VGA_CONTROL@GOTPAGE
Lloh3:
	ldr	x26, [x26, _mmD1VGA_CONTROL@GOTPAGEOFF]
Lloh4:
	adrp	x21, _mmD2VGA_CONTROL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _mmD2VGA_CONTROL@GOTPAGEOFF]
Lloh6:
	adrp	x28, _mmVGA_RENDER_CONTROL@GOTPAGE
Lloh7:
	ldr	x28, [x28, _mmVGA_RENDER_CONTROL@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x26]
	bl	_RREG32
	mov	x23, x0
	ldr	w0, [x21]
	bl	_RREG32
	mov	x22, x0
	ldr	w0, [x28]
	bl	_RREG32
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	w21, #0
	mov	w22, #0
	mov	w23, #0
LBB0_3:
Lloh8:
	adrp	x8, _ixROM_CNTL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ixROM_CNTL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_RREG32_SMC
	mov	x24, x0
	ldr	w0, [x27]
Lloh11:
	adrp	x8, _BUS_CNTL__BIOS_ROM_DIS_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BUS_CNTL__BIOS_ROM_DIS_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w1, w20, w8
	bl	_WREG32
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x26]
Lloh14:
	adrp	x25, _D1VGA_CONTROL__D1VGA_MODE_ENABLE_MASK@GOTPAGE
Lloh15:
	ldr	x25, [x25, _D1VGA_CONTROL__D1VGA_MODE_ENABLE_MASK@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x27, x26
	mov	x26, x28
Lloh16:
	adrp	x28, _D1VGA_CONTROL__D1VGA_TIMING_SELECT_MASK@GOTPAGE
Lloh17:
	ldr	x28, [x28, _D1VGA_CONTROL__D1VGA_TIMING_SELECT_MASK@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w8, w9, w8
	bic	w1, w23, w8
	bl	_WREG32
Lloh18:
	adrp	x8, _mmD2VGA_CONTROL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mmD2VGA_CONTROL@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w8, [x25]
	ldr	w9, [x28]
	mov	x28, x26
	mov	x26, x27
Lloh21:
	adrp	x27, _mmBUS_CNTL@GOTPAGE
Lloh22:
	ldr	x27, [x27, _mmBUS_CNTL@GOTPAGEOFF]
	orr	w8, w9, w8
	bic	w1, w22, w8
	bl	_WREG32
	ldr	w0, [x28]
Lloh23:
	adrp	x8, _VGA_RENDER_CONTROL__VGA_VSTATUS_CNTL_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VGA_RENDER_CONTROL__VGA_VSTATUS_CNTL_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	bic	w1, w21, w8
	bl	_WREG32
LBB0_5:
Lloh26:
	adrp	x8, _ixROM_CNTL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ixROM_CNTL@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _ROM_CNTL__SCK_OVERWRITE_MASK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ROM_CNTL__SCK_OVERWRITE_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	orr	w1, w8, w24
	bl	_WREG32_SMC
	mov	x0, x19
	bl	_amdgpu_read_bios
	mov	x25, x0
	ldr	w0, [x27]
	mov	x1, x20
	bl	_WREG32
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x26]
	mov	x1, x23
	bl	_WREG32
Lloh32:
	adrp	x8, _mmD2VGA_CONTROL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _mmD2VGA_CONTROL@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_WREG32
	ldr	w0, [x28]
	mov	x1, x21
	bl	_WREG32
LBB0_7:
Lloh35:
	adrp	x8, _ixROM_CNTL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ixROM_CNTL@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_WREG32_SMC
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_mmBUS_CNTL,4,2                 ; @mmBUS_CNTL
	.comm	_mmD1VGA_CONTROL,4,2            ; @mmD1VGA_CONTROL
	.comm	_mmD2VGA_CONTROL,4,2            ; @mmD2VGA_CONTROL
	.comm	_mmVGA_RENDER_CONTROL,4,2       ; @mmVGA_RENDER_CONTROL
	.comm	_ixROM_CNTL,4,2                 ; @ixROM_CNTL
	.comm	_BUS_CNTL__BIOS_ROM_DIS_MASK,4,2 ; @BUS_CNTL__BIOS_ROM_DIS_MASK
	.comm	_D1VGA_CONTROL__D1VGA_MODE_ENABLE_MASK,4,2 ; @D1VGA_CONTROL__D1VGA_MODE_ENABLE_MASK
	.comm	_D1VGA_CONTROL__D1VGA_TIMING_SELECT_MASK,4,2 ; @D1VGA_CONTROL__D1VGA_TIMING_SELECT_MASK
	.comm	_VGA_RENDER_CONTROL__VGA_VSTATUS_CNTL_MASK,4,2 ; @VGA_RENDER_CONTROL__VGA_VSTATUS_CNTL_MASK
	.comm	_ROM_CNTL__SCK_OVERWRITE_MASK,4,2 ; @ROM_CNTL__SCK_OVERWRITE_MASK
	.no_dead_strip	_cik_read_disabled_bios
.subsections_via_symbols
