	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_iccsense_parse          ## -- Begin function nvbios_iccsense_parse
	.p2align	4, 0x90
_nvbios_iccsense_parse:                 ## @nvbios_iccsense_parse
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, %r12
	leaq	-60(%rbp), %rsi
	leaq	-100(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	leaq	-96(%rbp), %r8
	callq	_nvbios_iccsense_table
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, %rcx
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	-44(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.4:
	movl	-60(%rbp), %edx
	cmpl	$16, %edx
	je	LBB0_7
## %bb.5:
	cmpl	$32, %edx
	jne	LBB0_6
LBB0_7:
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	%edi, (%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_kmalloc_array
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_26
## %bb.8:
	cmpl	$0, -44(%rbp)
	jle	LBB0_23
## %bb.9:
	movq	%rax, %r13
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	leaq	(%r15,%r15,2), %rbx
	leaq	(,%rbx,8), %rdx
	addq	%r13, %rdx
	movl	-100(%rbp), %ecx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leal	(%rcx,%rax), %r14d
	movl	-96(%rbp), %eax
	imull	%r15d, %eax
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	addl	%eax, %r14d
	movl	-60(%rbp), %eax
	cmpl	$16, %eax
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$32, %eax
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_nvbios_rd08
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	leal	1(%r14), %esi
	movq	%r12, %rdi
	callq	_nvbios_rd08
	movl	%eax, %esi
	movq	%rbx, %r14
	movl	%esi, 4(%r13,%rbx,8)
	movl	$5, %r13d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%r14), %esi
	movq	%r12, %rdi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_nvbios_rd08
	notl	%eax
	xorl	%ecx, %ecx
	testb	$-8, %al
	sete	%cl
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	leal	2(%r14), %esi
	movq	%r12, %rdi
	callq	_nvbios_rd08
	movl	%eax, %esi
	movq	%rbx, %r14
	movl	%eax, 4(%r13,%rbx,8)
	movl	$3, %r13d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %r14
	movl	4(%r13,%rbx,8), %esi
	xorl	%r13d, %r13d
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	leaq	-88(%rbp), %rdx
	callq	_nvbios_extdev_parse
	testq	%rax, %rax
	jne	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-88(%rbp), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_10 Depth=1
	cltq
	leaq	l_switch.table.nvbios_iccsense_parse(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %rdx
	leaq	8(%rcx,%r14,8), %r14
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 8(%rcx,%rdx,8)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%r13d, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	addl	-120(%rbp), %r13d               ## 4-byte Folded Reload
	addl	-128(%rbp), %r13d               ## 4-byte Folded Reload
	addl	-92(%rbp), %r13d                ## 4-byte Folded Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_nvbios_rd08
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,8)
	leal	1(%r13), %esi
	movq	%r12, %rdi
	callq	_nvbios_rd08
	xorl	%ecx, %ecx
	testb	$64, %al
	sete	%cl
	movq	8(%r14), %rax
	movl	%ecx, 4(%rax,%rbx,8)
	incq	%rbx
	movslq	(%r14), %rax
	addl	$2, %r13d
	cmpq	%rax, %rbx
	jl	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	$0, 8(%rbx,%r14,8)
	addl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	xorl	%eax, %eax
                                        ## kill: def $r13d killed $r13d killed $r13 def $r13
LBB0_21:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	(%r13,%rax,2), %esi
	movq	%r12, %rdi
	callq	_nvbios_rd16
	movl	%eax, 12(%rbx,%r14,8)
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r15
	movslq	-44(%rbp), %rax
	cmpq	%rax, %r15
	jge	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %r13
	jmp	LBB0_10
LBB0_23:
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_nvkm_error
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_24:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ICCSENSE version 0x%02x unknown\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.nvbios_iccsense_parse
l_switch.table.nvbios_iccsense_parse:
	.long	3                               ## 0x3
	.long	1                               ## 0x1
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvbios_iccsense_parse          ; -- Begin function nvbios_iccsense_parse
	.p2align	2
_nvbios_iccsense_parse:                 ; @nvbios_iccsense_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x21, x1
	mov	x19, x0
	add	x1, sp, #60
	add	x2, sp, #56
	add	x3, sp, #52
	add	x4, sp, #48
	bl	_nvbios_iccsense_table
	cbz	w0, LBB0_23
; %bb.1:
	mov	x25, x0
	ldr	w0, [sp, #52]
	cbz	w0, LBB0_23
; %bb.2:
	ldr	w2, [sp, #60]
	cmp	w2, #16
	b.eq	LBB0_4
; %bb.3:
	cmp	w2, #32
	b.ne	LBB0_22
LBB0_4:
	str	w0, [x21]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_kmalloc_array
	str	x0, [x21, #8]
	cbz	x0, LBB0_26
; %bb.5:
	ldr	w8, [sp, #52]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.6:
	mov	x22, x0
	mov	x24, #0
	mov	w27, #24
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	madd	x20, x24, x27, x22
	ldr	w28, [sp, #56]
	add	w8, w28, w25
	ldr	w26, [sp, #48]
	madd	w23, w26, w24, w8
	ldr	w8, [sp, #60]
	cmp	w8, #16
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #32
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_nvbios_rd08
	str	w0, [x20]
	add	w1, w23, #1
	mov	x0, x19
	bl	_nvbios_rd08
	mov	x1, x0
	madd	x8, x24, x27, x22
	str	w0, [x8, #4]
	mov	w20, #5
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w1, w23, #1
	mov	x0, x19
	bl	_nvbios_rd08
	mov	w8, #248
	bics	wzr, w8, w0
	cset	w8, eq
	str	w8, [x20]
	add	w1, w23, #2
	mov	x0, x19
	bl	_nvbios_rd08
	mov	x1, x0
	madd	x8, x24, x27, x22
	str	w0, [x8, #4]
	mov	w20, #3
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w20, #0
	madd	x8, x24, x27, x22
	ldr	w1, [x8, #4]
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x2, sp, #40
	mov	x0, x19
	bl	_nvbios_extdev_parse
	cbnz	x0, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #40]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x9, x25
	mov	x25, #0
	mov	x21, #0
Lloh3:
	adrp	x10, l_switch.table.nvbios_iccsense_parse@PAGE
Lloh4:
	add	x10, x10, l_switch.table.nvbios_iccsense_parse@PAGEOFF
	ldr	w8, [x10, w8, sxtw #2]
	mov	w10, #24
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	madd	x27, x24, x10, x22
	str	w8, [x27, #8]!
	add	w8, w20, w23
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	mov	w22, #1
	mov	x10, x28
	add	x28, x27, #8
	add	w8, w9, w20
	add	w8, w8, w10
	madd	w20, w26, w24, w8
LBB0_15:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w23, w20, w25
	mov	x0, x19
	mov	x1, x23
	bl	_nvbios_rd08
	ldr	x8, [x28]
	lsl	x26, x25, #2
	str	w0, [x8, x26]
	add	w1, w23, #1
	mov	x0, x19
	bl	_nvbios_rd08
	bic	w8, w22, w0, lsr #6
	ldr	x9, [x28]
	add	x9, x9, x26
	str	w8, [x9, #4]
	add	x21, x21, #1
	ldrsw	x8, [x27]
	add	x25, x25, #2
	cmp	x21, x8
	b.lt	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w25, [sp, #12]                  ; 4-byte Folded Reload
	mov	w27, #24
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w8, #0
	madd	x9, x24, x27, x22
	str	wzr, [x9, #8]
	add	w9, w20, w23
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w1, w9, w8, lsl #1
	mov	x0, x19
	bl	_nvbios_rd16
	madd	x8, x24, x27, x22
	str	w0, [x8, #12]
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [sp, #52]
	cmp	x24, x8
	b.ge	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x22, [x21, #8]
	b	LBB0_7
LBB0_21:
	mov	w0, #0
	b	LBB0_25
LBB0_22:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nvkm_error
LBB0_23:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_25:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_26:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ICCSENSE version 0x%02x unknown\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.nvbios_iccsense_parse
l_switch.table.nvbios_iccsense_parse:
	.long	3                               ; 0x3
	.long	1                               ; 0x1
	.long	1                               ; 0x1

.subsections_via_symbols
