	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ni_read_disabled_bios
_ni_read_disabled_bios:                 ## @ni_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, %r12
	movq	_R600_BUS_CNTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_RREG32
	movl	%eax, %r14d
	movq	_AVIVO_D1VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_AVIVO_D2VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_AVIVO_VGA_RENDER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_R600_ROM_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_RREG32
	movl	%eax, %r13d
	movl	(%r15), %edi
	movq	_R600_BIOS_ROM_DIS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	%r14d, %esi
	callq	_WREG32
	movq	%r12, %rdi
	callq	_ASIC_IS_NODCE
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_AVIVO_D1VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AVIVO_DVGA_CONTROL_MODE_ENABLE@GOTPCREL(%rip), %rax
	movq	_AVIVO_DVGA_CONTROL_TIMING_SELECT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	orl	(%rax), %esi
	notl	%esi
	andl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	callq	_WREG32
	movq	_AVIVO_D2VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	movq	_AVIVO_DVGA_CONTROL_MODE_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	notl	%esi
	andl	-48(%rbp), %esi                 ## 4-byte Folded Reload
	callq	_WREG32
	movq	_AVIVO_VGA_RENDER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AVIVO_VGA_VSTATUS_CNTL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	callq	_WREG32
LBB0_2:
	movl	(%rbx), %edi
	movq	_R600_SCK_OVERWRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r13d, %esi
	callq	_WREG32
	movq	%r12, %rdi
	callq	_radeon_read_bios
	movl	%eax, %r15d
	movq	_R600_BUS_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_WREG32
	movq	%r12, %rdi
	callq	_ASIC_IS_NODCE
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_AVIVO_D1VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_AVIVO_D2VGA_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
	movq	_AVIVO_VGA_RENDER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_WREG32
LBB0_4:
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_WREG32
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_BUS_CNTL,4,2              ## @R600_BUS_CNTL
	.comm	_AVIVO_D1VGA_CONTROL,4,2        ## @AVIVO_D1VGA_CONTROL
	.comm	_AVIVO_D2VGA_CONTROL,4,2        ## @AVIVO_D2VGA_CONTROL
	.comm	_AVIVO_VGA_RENDER_CONTROL,4,2   ## @AVIVO_VGA_RENDER_CONTROL
	.comm	_R600_ROM_CNTL,4,2              ## @R600_ROM_CNTL
	.comm	_R600_BIOS_ROM_DIS,4,2          ## @R600_BIOS_ROM_DIS
	.comm	_AVIVO_DVGA_CONTROL_MODE_ENABLE,4,2 ## @AVIVO_DVGA_CONTROL_MODE_ENABLE
	.comm	_AVIVO_DVGA_CONTROL_TIMING_SELECT,4,2 ## @AVIVO_DVGA_CONTROL_TIMING_SELECT
	.comm	_AVIVO_VGA_VSTATUS_CNTL_MASK,4,2 ## @AVIVO_VGA_VSTATUS_CNTL_MASK
	.comm	_R600_SCK_OVERWRITE,4,2         ## @R600_SCK_OVERWRITE
	.no_dead_strip	_ni_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 ni_read_disabled_bios
_ni_read_disabled_bios:                 ; @ni_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, _R600_BUS_CNTL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _R600_BUS_CNTL@GOTPAGEOFF]
	ldr	w0, [x27]
	bl	_RREG32
	mov	x24, x0
Lloh2:
	adrp	x28, _AVIVO_D1VGA_CONTROL@GOTPAGE
Lloh3:
	ldr	x28, [x28, _AVIVO_D1VGA_CONTROL@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_RREG32
	mov	x20, x0
Lloh4:
	adrp	x8, _AVIVO_D2VGA_CONTROL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVIVO_D2VGA_CONTROL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x21, x0
Lloh7:
	adrp	x8, _AVIVO_VGA_RENDER_CONTROL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVIVO_VGA_RENDER_CONTROL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x22, x0
Lloh10:
	adrp	x26, _R600_ROM_CNTL@GOTPAGE
Lloh11:
	ldr	x26, [x26, _R600_ROM_CNTL@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_RREG32
	mov	x23, x0
	ldr	w0, [x27]
Lloh12:
	adrp	x8, _R600_BIOS_ROM_DIS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R600_BIOS_ROM_DIS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w1, w24, w8
	bl	_WREG32
	mov	x0, x19
	bl	_ASIC_IS_NODCE
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x28]
Lloh15:
	adrp	x25, _AVIVO_DVGA_CONTROL_MODE_ENABLE@GOTPAGE
Lloh16:
	ldr	x25, [x25, _AVIVO_DVGA_CONTROL_MODE_ENABLE@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh17:
	adrp	x28, _AVIVO_DVGA_CONTROL_TIMING_SELECT@GOTPAGE
Lloh18:
	ldr	x28, [x28, _AVIVO_DVGA_CONTROL_TIMING_SELECT@GOTPAGEOFF]
	ldr	w9, [x28]
	orr	w8, w9, w8
	bic	w1, w20, w8
	bl	_WREG32
Lloh19:
	adrp	x8, _AVIVO_D2VGA_CONTROL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AVIVO_D2VGA_CONTROL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	ldr	w8, [x25]
	ldr	w9, [x28]
Lloh22:
	adrp	x28, _AVIVO_D1VGA_CONTROL@GOTPAGE
Lloh23:
	ldr	x28, [x28, _AVIVO_D1VGA_CONTROL@GOTPAGEOFF]
	orr	w8, w9, w8
	bic	w1, w21, w8
	bl	_WREG32
Lloh24:
	adrp	x8, _AVIVO_VGA_RENDER_CONTROL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AVIVO_VGA_RENDER_CONTROL@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x8, _AVIVO_VGA_VSTATUS_CNTL_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AVIVO_VGA_VSTATUS_CNTL_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	bic	w1, w22, w8
	bl	_WREG32
LBB0_2:
	ldr	w0, [x26]
Lloh30:
	adrp	x8, _R600_SCK_OVERWRITE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _R600_SCK_OVERWRITE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	orr	w1, w8, w23
	bl	_WREG32
	mov	x0, x19
	bl	_radeon_read_bios
	mov	x25, x0
	ldr	w0, [x27]
	mov	x1, x24
	bl	_WREG32
	mov	x0, x19
	bl	_ASIC_IS_NODCE
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x28]
	mov	x1, x20
	bl	_WREG32
Lloh33:
	adrp	x8, _AVIVO_D2VGA_CONTROL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AVIVO_D2VGA_CONTROL@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_WREG32
Lloh36:
	adrp	x8, _AVIVO_VGA_RENDER_CONTROL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AVIVO_VGA_RENDER_CONTROL@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_WREG32
LBB0_4:
	ldr	w0, [x26]
	mov	x1, x23
	bl	_WREG32
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_BUS_CNTL,4,2              ; @R600_BUS_CNTL
	.comm	_AVIVO_D1VGA_CONTROL,4,2        ; @AVIVO_D1VGA_CONTROL
	.comm	_AVIVO_D2VGA_CONTROL,4,2        ; @AVIVO_D2VGA_CONTROL
	.comm	_AVIVO_VGA_RENDER_CONTROL,4,2   ; @AVIVO_VGA_RENDER_CONTROL
	.comm	_R600_ROM_CNTL,4,2              ; @R600_ROM_CNTL
	.comm	_R600_BIOS_ROM_DIS,4,2          ; @R600_BIOS_ROM_DIS
	.comm	_AVIVO_DVGA_CONTROL_MODE_ENABLE,4,2 ; @AVIVO_DVGA_CONTROL_MODE_ENABLE
	.comm	_AVIVO_DVGA_CONTROL_TIMING_SELECT,4,2 ; @AVIVO_DVGA_CONTROL_TIMING_SELECT
	.comm	_AVIVO_VGA_VSTATUS_CNTL_MASK,4,2 ; @AVIVO_VGA_VSTATUS_CNTL_MASK
	.comm	_R600_SCK_OVERWRITE,4,2         ; @R600_SCK_OVERWRITE
	.no_dead_strip	_ni_read_disabled_bios
.subsections_via_symbols
