	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atombios_sideport_present ## -- Begin function radeon_atombios_sideport_present
	.p2align	4, 0x90
_radeon_atombios_sideport_present:      ## @radeon_atombios_sideport_present
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IntegratedSystemInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movq	(%rbx), %rdx
	movq	_CHIP_RS600@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rdx
	je	LBB0_7
## %bb.1:
	movq	8(%rbx), %rdi
	leaq	-16(%rbp), %rcx
	leaq	-12(%rbp), %r8
	leaq	-24(%rbp), %r9
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_atom_parse_data_header
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	-24(%rbp), %rcx
	movl	-12(%rbp), %edx
	cmpl	$2, %edx
	je	LBB0_4
## %bb.3:
	cmpl	$1, %edx
	jne	LBB0_5
LBB0_4:
	movl	(%rax,%rcx), %edi
	callq	_le32_to_cpu
	movl	$1, %ecx
	testl	%eax, %eax
	jne	LBB0_7
	jmp	LBB0_6
LBB0_5:
	movl	-16(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_6:
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_IntegratedSystemInfo,4,2       ## @IntegratedSystemInfo
	.comm	_CHIP_RS600,8,3                 ## @CHIP_RS600
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported IGP table: %d %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atombios_sideport_present ; -- Begin function radeon_atombios_sideport_present
	.p2align	2
_radeon_atombios_sideport_present:      ; @radeon_atombios_sideport_present
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _IntegratedSystemInfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IntegratedSystemInfo@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _CHIP_RS600@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHIP_RS600@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.1:
	mov	x1, x0
	ldr	x0, [x19, #8]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x5, sp
	mov	x2, #0
	bl	_atom_parse_data_header
	cbz	x0, LBB0_7
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x9, [sp]
	ldr	w2, [sp, #8]
	cmp	w2, #2
	b.eq	LBB0_4
; %bb.3:
	cmp	w2, #1
	b.ne	LBB0_6
LBB0_4:
	ldr	w0, [x8, x9]
	bl	_le32_to_cpu
	cbz	w0, LBB0_7
; %bb.5:
	mov	w0, #1
	b	LBB0_8
LBB0_6:
	ldr	w1, [sp, #12]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_IntegratedSystemInfo,4,2       ; @IntegratedSystemInfo
	.comm	_CHIP_RS600,8,3                 ; @CHIP_RS600
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported IGP table: %d %d\n"

.subsections_via_symbols
