	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_atombios_get_asic_ss_info ## -- Begin function radeon_atombios_get_asic_ss_info
	.p2align	4, 0x90
_radeon_atombios_get_asic_ss_info:      ## @radeon_atombios_get_asic_ss_info
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASIC_InternalSS_Info@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	8(%rbx), %rdi
	leaq	-64(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	leaq	-68(%rbp), %r8
	leaq	-88(%rbp), %r9
	movl	%r14d, %esi
	callq	_atom_parse_data_header
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %r14
	movq	-88(%rbp), %r13
	movl	-72(%rbp), %esi
	cmpl	$3, %esi
	je	LBB0_15
## %bb.2:
	cmpl	$2, %esi
	je	LBB0_10
## %bb.3:
	cmpl	$1, %esi
	jne	LBB0_23
## %bb.4:
	movabsq	$17179869180, %rcx              ## imm = 0x3FFFFFFFC
	addq	-64(%rbp), %rcx
	shrq	$2, %rcx
	testl	%ecx, %ecx
	movl	$0, %eax
	jle	LBB0_25
## %bb.5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,4), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$20, %rbx
	cmpq	%rbx, %r15
	je	LBB0_24
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r13), %rax
	cmpl	%r12d, (%rax,%rbx)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	16(%rax,%rbx), %edi
	callq	_le32_to_cpu
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_9
	jmp	LBB0_8
LBB0_15:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movabsq	$17179869180, %rcx              ## imm = 0x3FFFFFFFC
	addq	-64(%rbp), %rcx
	shrq	$2, %rcx
	testl	%ecx, %ecx
	movl	$0, %eax
	jle	LBB0_25
## %bb.16:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,4), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	addq	$20, %rbx
	cmpq	%rbx, %r15
	je	LBB0_24
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r13), %rax
	cmpl	%r12d, (%rax,%rbx)
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	16(%rax,%rbx), %edi
	callq	_le32_to_cpu
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_22
## %bb.19:
	movq	(%r14,%r13), %rax
	movl	12(%rax,%rbx), %edi
	callq	_le16_to_cpu
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, 16(%r15)
	movq	(%r14,%r13), %rax
	movl	8(%rax,%rbx), %eax
	movl	%eax, 8(%r15)
	movq	(%r14,%r13), %rax
	movl	4(%rax,%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, (%r15)
	movq	_RADEON_IS_IGP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, (%rdi)
	je	LBB0_20
## %bb.21:
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_radeon_atombios_get_igp_ss_overrides
	movl	$1, %eax
	jmp	LBB0_25
LBB0_10:
	movabsq	$17179869180, %rcx              ## imm = 0x3FFFFFFFC
	addq	-64(%rbp), %rcx
	shrq	$2, %rcx
	testl	%ecx, %ecx
	movl	$0, %eax
	jle	LBB0_25
## %bb.11:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, %eax
	shlq	$2, %rax
	leaq	(%rax,%rax,4), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$20, %rbx
	cmpq	%rbx, %r15
	je	LBB0_24
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14,%r13), %rax
	cmpl	%r12d, (%rax,%rbx)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	16(%rax,%rbx), %edi
	callq	_le32_to_cpu
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jl	LBB0_14
LBB0_8:
	movq	(%r14,%r13), %rax
	movl	12(%rax,%rbx), %edi
	callq	_le16_to_cpu
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, 16(%r15)
	movq	(%r14,%r13), %rax
	movl	8(%rax,%rbx), %eax
	movl	%eax, 8(%r15)
	movq	(%r14,%r13), %rax
	movl	4(%rax,%rbx), %edi
	callq	_le16_to_cpu
	movq	%rax, (%r15)
	movl	$1, %eax
	jmp	LBB0_25
LBB0_23:
	movl	-68(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_24:
	xorl	%eax, %eax
LBB0_25:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	$1, %eax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.comm	_ASIC_InternalSS_Info,4,2       ## @ASIC_InternalSS_Info
	.comm	_RADEON_IS_IGP,4,2              ## @RADEON_IS_IGP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported ASIC_InternalSS_Info 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_get_asic_ss_info ; -- Begin function radeon_atombios_get_asic_ss_info
	.p2align	2
_radeon_atombios_get_asic_ss_info:      ; @radeon_atombios_get_asic_ss_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ASIC_InternalSS_Info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ASIC_InternalSS_Info@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	mov	x23, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x0, [x22, #8]
	add	x2, sp, #16
	add	x3, sp, #12
	add	x4, sp, #8
	add	x5, sp, #24
	mov	x1, x23
	bl	_atom_parse_data_header
	cbz	x0, LBB0_24
; %bb.1:
	ldr	x8, [x22, #8]
	ldr	x23, [x8]
	ldr	x24, [sp, #24]
	ldr	w1, [sp, #12]
	cmp	w1, #3
	b.eq	LBB0_9
; %bb.2:
	cmp	w1, #2
	b.eq	LBB0_16
; %bb.3:
	cmp	w1, #1
	b.ne	LBB0_22
; %bb.4:
	ldr	x8, [sp, #16]
	mov	x9, #17179869180
	add	x8, x8, x9
	lsr	x9, x8, #2
	cmp	w9, #1
	b.lt	LBB0_23
; %bb.5:
	mov	x22, #0
	ubfx	x8, x8, #2, #32
	add	x8, x8, w9, uxtw #2
	lsl	x25, x8, #2
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x22, x22, #20
	cmp	x25, x22
	b.eq	LBB0_23
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, x24]
	ldr	w9, [x8, x22]
	cmp	w9, w20
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x8, x22
	ldr	w0, [x8, #16]
	bl	_le32_to_cpu
	cmp	w0, w21
	b.lt	LBB0_6
	b	LBB0_21
LBB0_9:
	ldr	x8, [sp, #16]
	mov	x9, #17179869180
	add	x8, x8, x9
	lsr	x9, x8, #2
	cmp	w9, #1
	b.lt	LBB0_23
; %bb.10:
	mov	x25, #0
	ubfx	x8, x8, #2, #32
	add	x8, x8, w9, uxtw #2
	lsl	x26, x8, #2
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x25, x25, #20
	cmp	x26, x25
	b.eq	LBB0_23
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, x24]
	ldr	w9, [x8, x25]
	cmp	w9, w20
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x8, x25
	ldr	w0, [x8, #16]
	bl	_le32_to_cpu
	cmp	w0, w21
	b.lt	LBB0_11
; %bb.14:
	ldr	x8, [x23, x24]
	add	x8, x8, x25
	ldr	w0, [x8, #12]
	bl	_le16_to_cpu
	str	x0, [x19, #16]
	ldr	x8, [x23, x24]
	add	x8, x8, x25
	ldr	w8, [x8, #8]
	str	w8, [x19, #8]
	ldr	x8, [x23, x24]
	add	x8, x8, x25
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	str	x0, [x19]
	ldr	w8, [x22]
Lloh6:
	adrp	x9, _RADEON_IS_IGP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RADEON_IS_IGP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.15:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_radeon_atombios_get_igp_ss_overrides
	mov	w0, #1
	b	LBB0_24
LBB0_16:
	ldr	x8, [sp, #16]
	mov	x9, #17179869180
	add	x8, x8, x9
	lsr	x9, x8, #2
	cmp	w9, #1
	b.lt	LBB0_23
; %bb.17:
	mov	x22, #0
	ubfx	x8, x8, #2, #32
	add	x8, x8, w9, uxtw #2
	lsl	x25, x8, #2
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x22, x22, #20
	cmp	x25, x22
	b.eq	LBB0_23
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, x24]
	ldr	w9, [x8, x22]
	cmp	w9, w20
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	add	x8, x8, x22
	ldr	w0, [x8, #16]
	bl	_le32_to_cpu
	cmp	w0, w21
	b.lt	LBB0_18
LBB0_21:
	ldr	x8, [x23, x24]
	add	x8, x8, x22
	ldr	w0, [x8, #12]
	bl	_le16_to_cpu
	str	x0, [x19, #16]
	ldr	x8, [x23, x24]
	add	x8, x8, x22
	ldr	w8, [x8, #8]
	str	w8, [x19, #8]
	ldr	x8, [x23, x24]
	add	x8, x8, x22
	ldr	w0, [x8, #4]
	bl	_le16_to_cpu
	str	x0, [x19]
	mov	w0, #1
	b	LBB0_24
LBB0_22:
	ldr	w2, [sp, #8]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_23:
	mov	w0, #0
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	mov	w0, #1
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.comm	_ASIC_InternalSS_Info,4,2       ; @ASIC_InternalSS_Info
	.comm	_RADEON_IS_IGP,4,2              ; @RADEON_IS_IGP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported ASIC_InternalSS_Info table: %d %d\n"

.subsections_via_symbols
