	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ch7xxx_init
_ch7xxx_init:                           ## @ch7xxx_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
	subq	$24, %rsp
	.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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_kzalloc
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, 16(%r15)
	movq	%rax, 8(%r15)
	movl	$1, (%rax)
	movq	_CH7xxx_REG_VID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ch7xxx_readb
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	-48(%rbp), %rdi
	callq	_ch7xxx_get_id
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %r13
	movq	_CH7xxx_REG_DID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_ch7xxx_readb
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	-56(%rbp), %rcx
	movq	_CH7xxx_DID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.5:
	movl	$0, (%rbx)
	movq	-48(%rbp), %rdx
	leaq	L_.str.1(%rip), %rdi
	movq	%r13, %rsi
	callq	_DRM_DEBUG_KMS
	movl	$1, %r14d
	jmp	LBB0_8
LBB0_6:
	movq	-48(%rbp), %rsi
	movq	(%r12), %rdx
	movq	(%r15), %rcx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_7:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %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	_CH7xxx_REG_VID,4,2             ## @CH7xxx_REG_VID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ch7xxx not detected; got 0x%02x from %s slave %d.\n"

	.comm	_CH7xxx_REG_DID,4,2             ## @CH7xxx_REG_DID
	.comm	_CH7xxx_DID,8,3                 ## @CH7xxx_DID
L_.str.1:                               ## @.str.1
	.asciz	"Detected %s chipset, vendor/device ID 0x%02x/0x%02x\n"

	.no_dead_strip	_ch7xxx_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ch7xxx_init
_ch7xxx_init:                           ; @ch7xxx_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	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, #4
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	stp	x0, x21, [x20, #8]
	mov	w8, #1
	str	w8, [x0]
Lloh3:
	adrp	x8, _CH7xxx_REG_VID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CH7xxx_REG_VID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_ch7xxx_readb
	cbz	w0, LBB0_7
; %bb.2:
	ldr	x0, [sp, #8]
	bl	_ch7xxx_get_id
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh6:
	adrp	x8, _CH7xxx_REG_DID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CH7xxx_REG_DID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_ch7xxx_readb
	cbz	w0, LBB0_7
; %bb.4:
	ldr	x3, [sp]
Lloh9:
	adrp	x8, _CH7xxx_DID@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CH7xxx_DID@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x3, x8
	b.ne	LBB0_6
; %bb.5:
	str	wzr, [x19]
	ldr	x2, [sp, #8]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_DRM_DEBUG_KMS
	mov	w0, #1
	b	LBB0_8
LBB0_6:
	ldr	x1, [sp, #8]
	ldr	x2, [x21]
	ldr	x3, [x20]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_7:
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_CH7xxx_REG_VID,4,2             ; @CH7xxx_REG_VID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ch7xxx not detected; got 0x%02x from %s slave %d.\n"

	.comm	_CH7xxx_REG_DID,4,2             ; @CH7xxx_REG_DID
	.comm	_CH7xxx_DID,8,3                 ; @CH7xxx_DID
l_.str.1:                               ; @.str.1
	.asciz	"Detected %s chipset, vendor/device ID 0x%02x/0x%02x\n"

	.no_dead_strip	_ch7xxx_init
.subsections_via_symbols
