	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivch_init
_ivch_init:                             ## @ivch_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r13
	movq	%r12, 16(%r14)
	movq	%rax, 8(%r14)
	movl	$1, (%rax)
	movq	_VR00@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_ivch_read
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	$0, (%r13)
	movq	_VR00_BASE_ADDRESS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	-44(%rbp), %esi
	movl	(%r14), %edx
	cmpl	%edx, %esi
	jne	LBB0_3
## %bb.5:
	movq	_VR20@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	4(%r13), %rdx
	movq	%r14, %rdi
	callq	_ivch_read
	movq	_VR21@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdx
	addq	$8, %rdx
	movq	%r14, %rdi
	callq	_ivch_read
	movq	_backup_addresses@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx), %esi
	movq	16(%r13), %rdx
	addq	%rbx, %rdx
	movq	%r14, %rdi
	callq	_ivch_read
	incq	%r12
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %rbx
	cmpq	%rax, %r12
	jl	LBB0_7
LBB0_8:
	movq	%r14, %rdi
	callq	_ivch_dump_regs
	movl	$1, %r15d
	jmp	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_4:
	movq	%r13, %rdi
	callq	_kfree
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_VR00,4,2                       ## @VR00
	.comm	_VR00_BASE_ADDRESS_MASK,4,2     ## @VR00_BASE_ADDRESS_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ivch detect failed due to address mismatch (%d vs %d)\n"

	.comm	_VR20,4,2                       ## @VR20
	.comm	_VR21,4,2                       ## @VR21
	.comm	_backup_addresses,8,3           ## @backup_addresses
	.no_dead_strip	_ivch_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivch_init
_ivch_init:                             ; @ivch_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	stp	x0, x21, [x20, #8]
	mov	w8, #1
	str	w8, [x0]
Lloh3:
	adrp	x8, _VR00@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VR00@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_ivch_read
	cbz	w0, LBB0_8
; %bb.2:
	str	wzr, [x19]
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _VR00_BASE_ADDRESS_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VR00_BASE_ADDRESS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w1, w9, w8
	ldr	w2, [x20]
	cmp	w1, w2
	b.ne	LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _VR20@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VR20@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, x19, #4
	mov	x0, x20
	bl	_ivch_read
Lloh12:
	adrp	x8, _VR21@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VR21@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, x19, #8
	mov	x0, x20
	bl	_ivch_read
Lloh15:
	adrp	x21, _backup_addresses@GOTPAGE
Lloh16:
	ldr	x21, [x21, _backup_addresses@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
	mov	x23, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	w1, [x8, x22]
	ldr	x8, [x19, #16]
	add	x2, x8, x22
	mov	x0, x20
	bl	_ivch_read
	add	x23, x23, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	add	x22, x22, #4
	cmp	x23, w0, sxtw
	b.lt	LBB0_5
LBB0_6:
	mov	x0, x20
	bl	_ivch_dump_regs
	mov	w0, #1
	b	LBB0_9
LBB0_7:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_8:
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_VR00,4,2                       ; @VR00
	.comm	_VR00_BASE_ADDRESS_MASK,4,2     ; @VR00_BASE_ADDRESS_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ivch detect failed due to address mismatch (%d vs %d)\n"

	.comm	_VR20,4,2                       ; @VR20
	.comm	_VR21,4,2                       ; @VR21
	.comm	_backup_addresses,8,3           ; @backup_addresses
	.no_dead_strip	_ivch_init
.subsections_via_symbols
