	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_i2c_create_            ## -- Begin function nouveau_i2c_create_
	.p2align	4, 0x90
_nouveau_i2c_create_:                   ## @nouveau_i2c_create_
	.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	%r9, %r15
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_nouveau_bios
	movq	%rax, %r13
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %r8
	leaq	L_.str.1(%rip), %r9
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_nouveau_subdev_create
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi
	callq	_nv_object
	movl	%ebx, %ecx
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%rax, (%r15)
	testl	%ebx, %ebx
	jne	LBB0_24
## %bb.1:
	movq	-64(%rbp), %rax
	movq	_nouveau_i2c_find@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movq	_nouveau_i2c_find_type@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-64(%rbp), %rdi
	movl	%eax, 16(%rdi)
	movq	_nouveau_i2c_identify@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	addq	$8, %rdi
	callq	_INIT_LIST_HEAD
	leaq	-48(%rbp), %rdx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_dcb_i2c_parse
	movl	$-1, %r12d
	testl	%eax, %eax
	je	LBB0_25
LBB0_2:
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	leaq	-96(%rbp), %r8
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_dcb_outp_parse
	testl	%eax, %eax
	movl	$0, %ecx
	je	LBB0_24
## %bb.3:
	leal	16(%r12), %eax
	addl	$31, %r12d
	testl	%eax, %eax
	cmovnsl	%eax, %r12d
	andl	$-16, %r12d
	xorl	%r15d, %r15d
	movq	_ENODEV@GOTPCREL(%rip), %rbx
	leaq	-56(%rbp), %r13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
	incl	%r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	leaq	-52(%rbp), %rcx
	leaq	-96(%rbp), %r8
	callq	_dcb_outp_parse
	incl	%r15d
	testl	%eax, %eax
	je	LBB0_23
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$0, -84(%rbp)
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	-88(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	-96(%rbp), %eax
	cmpl	$129, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	callq	_NV_I2C_TYPE_EXTDDC
	jmp	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	callq	_NV_I2C_TYPE_EXTAUX
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, -48(%rbp)
	movl	(%rbx), %r13d
	testl	%r13d, %r13d
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	negl	%r13d
	movq	$-1, -104(%rbp)                 ## 8-byte Folded Spill
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=2
	movl	%r12d, %ebx
	testl	%r13d, %r13d
	je	LBB0_21
LBB0_15:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
	movq	-104(%rbp), %r14                ## 8-byte Reload
	incq	%r14
	movq	_nouveau_i2c_extdev_sclass@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jge	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movq	-64(%rbp), %rdi
	movl	-92(%rbp), %esi
	callq	*(%rdi)
	movq	%rax, %rdi
	callq	_nv_object
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	(%rax,%r14,8), %r14
	movq	(%r14), %rax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_18 Depth=3
	movq	8(%r14), %rax
	addq	$8, %r14
	testq	%rax, %rax
	je	LBB0_14
LBB0_18:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_15 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=3
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rsi
	leal	1(%r12), %ebx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	leaq	-120(%rbp), %r9
	callq	_nouveau_object_ctor
	movl	%eax, %r13d
	movl	%ebx, %r12d
	testl	%eax, %eax
	jne	LBB0_17
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %ebx
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r15d, %esi
	leaq	-56(%rbp), %r13
	movq	%r13, %rdx
	leaq	-52(%rbp), %rcx
	leaq	-96(%rbp), %r8
	callq	_dcb_outp_parse
	xorl	%ecx, %ecx
	movl	%ebx, %r12d
	testl	%eax, %eax
	movq	_ENODEV@GOTPCREL(%rip), %rbx
	jne	LBB0_4
	jmp	LBB0_24
LBB0_23:
	xorl	%ecx, %ecx
LBB0_24:
	movl	%ecx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r13
	movq	_EINVAL@GOTPCREL(%rip), %r15
	leaq	-120(%rbp), %r14
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=1
	leal	1(%r12), %ebx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_dcb_i2c_parse
	testl	%eax, %eax
	jne	LBB0_2
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r12d
	movq	-48(%rbp), %rcx
	movq	_DCB_I2C_UNUSED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	(%rbx), %rax
	cmpq	%rcx, %rax
	je	LBB0_29
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	xorl	%eax, %eax
	subl	(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_31
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_29:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%rdi, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movl	%r12d, %r8d
	movq	%r14, %r9
	callq	_nouveau_object_ctor
	testl	%eax, %eax
	je	LBB0_26
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_26
## %bb.32:                              ##   in Loop: Header=BB0_27 Depth=1
	addq	$8, %rbx
	movq	-48(%rbp), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_30
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C"

L_.str.1:                               ## @.str.1
	.asciz	"i2c"

	.comm	_nouveau_i2c_find_type,4,2      ## @nouveau_i2c_find_type
	.comm	_nouveau_i2c_identify,4,2       ## @nouveau_i2c_identify
	.comm	_DCB_I2C_UNUSED,8,3             ## @DCB_I2C_UNUSED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_nouveau_i2c_extdev_sclass,8,3  ## @nouveau_i2c_extdev_sclass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_i2c_create_            ; -- Begin function nouveau_i2c_create_
	.p2align	2
_nouveau_i2c_create_:                   ; @nouveau_i2c_create_
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x5
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	bl	_nouveau_bios
	mov	x20, x0
Lloh0:
	adrp	x4, l_.str@PAGE
Lloh1:
	add	x4, x4, l_.str@PAGEOFF
Lloh2:
	adrp	x5, l_.str.1@PAGE
Lloh3:
	add	x5, x5, l_.str.1@PAGEOFF
	add	x6, sp, #40
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	mov	w3, #0
	bl	_nouveau_subdev_create
	mov	x23, x0
	ldr	x0, [sp, #40]
	bl	_nv_object
	str	x0, [x19]
	cbnz	w23, LBB0_23
; %bb.1:
Lloh4:
	adrp	x8, _nouveau_i2c_find@GOTPAGE
Lloh5:
	ldr	x8, [x8, _nouveau_i2c_find@GOTPAGEOFF]
	ldr	x9, [sp, #40]
	str	x8, [x9]
Lloh6:
	adrp	x8, _nouveau_i2c_find_type@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nouveau_i2c_find_type@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [sp, #40]
Lloh9:
	adrp	x10, _nouveau_i2c_identify@GOTPAGE
Lloh10:
	ldr	x10, [x10, _nouveau_i2c_identify@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	stp	w10, w8, [x9, #12]
	add	x0, x9, #8
	bl	_INIT_LIST_HEAD
	add	x2, sp, #24
	mov	x0, x20
	mov	w1, #0
	bl	_dcb_i2c_parse
	cbz	w0, LBB0_24
; %bb.2:
	mov	w22, #-1
LBB0_3:
	add	x2, sp, #4
	mov	x3, sp
	add	x4, sp, #8
	mov	x0, x20
	mov	w1, #0
	bl	_dcb_outp_parse
	cbz	w0, LBB0_22
; %bb.4:
	mov	w21, #0
	add	w8, w22, #16
	add	w9, w22, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	and	w26, w8, #0xfffffff0
Lloh12:
	adrp	x22, _ENODEV@GOTPAGE
Lloh13:
	ldr	x22, [x22, _ENODEV@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_18 Depth 3
	add	w21, w21, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x2, sp, #4
	mov	x3, sp
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_dcb_outp_parse
	add	w21, w21, #1
	cbz	w0, LBB0_22
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w0, w8, [sp, #16]
	cmp	w8, #0
	ccmp	w0, #0, #4, ne
	b.eq	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [sp, #8]
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	bl	_NV_I2C_TYPE_EXTDDC
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_NV_I2C_TYPE_EXTAUX
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x0, [sp, #24]
	mov	x27, x22
	ldr	w8, [x22]
	cbz	w8, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	neg	w23, w8
	mov	x28, #-1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	mov	x22, x26
	cbz	w23, LBB0_21
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_18 Depth 3
	add	x28, x28, #1
Lloh14:
	adrp	x22, _nouveau_i2c_extdev_sclass@GOTPAGE
Lloh15:
	ldr	x22, [x22, _nouveau_i2c_extdev_sclass@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x28, w0, sxtw
	b.ge	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	ldr	x0, [sp, #40]
	ldr	x8, [x0]
	ldr	w1, [sp, #12]
	blr	x8
	bl	_nv_object
	mov	x24, x0
	ldr	x8, [x22]
	ldr	x25, [x8, x28, lsl #3]
	ldr	x8, [x25]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=3
	ldr	x8, [x25, #8]!
	cbz	x8, LBB0_14
LBB0_18:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x9, [sp, #24]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=3
	ldr	x1, [x19]
	add	w22, w26, #1
	add	x5, sp, #32
	mov	x0, x24
	mov	x2, x25
	mov	x3, #0
	mov	x4, x26
	bl	_nouveau_object_ctor
	mov	x23, x0
	mov	x26, x22
	cbnz	w0, LBB0_17
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x26
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x2, sp, #4
	mov	x3, sp
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_dcb_outp_parse
	mov	w23, #0
	mov	x26, x22
	mov	x22, x27
	cbnz	w0, LBB0_5
	b	LBB0_23
LBB0_22:
	mov	w23, #0
LBB0_23:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_24:
	mov	w23, #0
Lloh16:
	adrp	x24, _DCB_I2C_UNUSED@GOTPAGE
Lloh17:
	ldr	x24, [x24, _DCB_I2C_UNUSED@GOTPAGEOFF]
Lloh18:
	adrp	x25, _EINVAL@GOTPAGE
Lloh19:
	ldr	x25, [x25, _EINVAL@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	w23, w22, #1
	add	x2, sp, #24
	mov	x0, x20
	mov	x1, x23
	bl	_dcb_i2c_parse
	cbnz	w0, LBB0_3
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x22, x23
	ldr	x8, [sp, #24]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x9, [x21]
	mov	x23, x21
	cmp	x9, x8
	b.eq	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	w8, [x25]
	neg	w0, w8
	cbnz	w0, LBB0_30
	b	LBB0_25
LBB0_29:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x0, [x19]
	add	x3, sp, #24
	add	x5, sp, #32
	mov	x1, x0
	mov	x2, x23
	mov	x4, x22
	bl	_nouveau_object_ctor
	cbz	w0, LBB0_25
LBB0_30:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	x9, [x23, #8]!
	cbz	x9, LBB0_25
; %bb.31:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	x8, [sp, #24]
	cmp	x9, x8
	b.ne	LBB0_28
	b	LBB0_29
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C"

l_.str.1:                               ; @.str.1
	.asciz	"i2c"

	.comm	_nouveau_i2c_find_type,4,2      ; @nouveau_i2c_find_type
	.comm	_nouveau_i2c_identify,4,2       ; @nouveau_i2c_identify
	.comm	_DCB_I2C_UNUSED,8,3             ; @DCB_I2C_UNUSED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_nouveau_i2c_extdev_sclass,8,3  ; @nouveau_i2c_extdev_sclass
.subsections_via_symbols
