	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_i2c_port_create_       ## -- Begin function nouveau_i2c_port_create_
	.p2align	4, 0x90
_nouveau_i2c_port_create_:              ## @nouveau_i2c_port_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rbp), %r12
	callq	_nv_device
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	%r13d, %r8d
	movq	%r12, %r9
	callq	_nouveau_object_create_
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	(%r12), %r13
	leaq	16(%r13), %r15
	movl	44(%r13), %edi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rcx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_snprintf
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r13)
	movq	16(%r12), %rax
	movq	%rax, 32(%r13)
	movl	%ebx, (%r13)
	movq	%r15, %rbx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	_nouveau_i2c_bit_algo@GOTPCREL(%rip), %rcx
	movq	%r14, %r15
	jne	LBB0_6
## %bb.2:
	movl	8(%r12), %edi
	movq	_CSTMSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rcx, %r14
	callq	_nouveau_boolopt
	movq	%r14, %rcx
	testl	%eax, %eax
	je	LBB0_3
LBB0_6:
	movq	%r13, 24(%r13)
	movq	%rcx, 16(%r13)
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	jne	LBB0_9
LBB0_8:
	movq	%r15, %r14
	addq	$8, %r13
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_list_add_tail
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_atomic_dec
	movq	%r15, %rdi
	callq	_atomic_dec
	xorl	%eax, %eax
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movl	$10, 4(%rax)
	movl	$2200, %edi                     ## imm = 0x898
	callq	_usecs_to_jiffies
	movl	%eax, 80(%r14)
	movq	%r13, 72(%r14)
	movq	_nouveau_i2c_pre_xfer@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r14)
	movq	_nouveau_i2c_setsda@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r14)
	movq	_nouveau_i2c_setscl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_nouveau_i2c_getsda@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_nouveau_i2c_getscl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	%r14, 24(%r13)
	movq	%rbx, %rdi
	callq	_i2c_bit_add_bus
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nouveau-%s-%d"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_nouveau_i2c_bit_algo,4,2       ## @nouveau_i2c_bit_algo
L_.str.1:                               ## @.str.1
	.asciz	"NvI2C"

	.comm	_CSTMSEL,4,2                    ## @CSTMSEL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nouveau_i2c_pre_xfer,4,2       ## @nouveau_i2c_pre_xfer
	.comm	_nouveau_i2c_setsda,4,2         ## @nouveau_i2c_setsda
	.comm	_nouveau_i2c_setscl,4,2         ## @nouveau_i2c_setscl
	.comm	_nouveau_i2c_getsda,4,2         ## @nouveau_i2c_getsda
	.comm	_nouveau_i2c_getscl,4,2         ## @nouveau_i2c_getscl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_i2c_port_create_       ; -- Begin function nouveau_i2c_port_create_
	.p2align	2
_nouveau_i2c_port_create_:              ; @nouveau_i2c_port_create_
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x6
	mov	x25, x5
	mov	x22, x4
	mov	x24, x3
	mov	x26, x2
	mov	x19, x1
	mov	x20, x0
	bl	_nv_device
	mov	x23, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x26
	mov	w3, #0
	mov	x4, x25
	mov	x5, x21
	bl	_nouveau_object_create_
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x25, [x21]
	add	x21, x25, #16
	ldr	w0, [x25, #44]
	ldr	x3, [x23]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x4, x24
	bl	_snprintf
Lloh2:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x25, #40]
	ldr	x8, [x23, #16]
	str	x8, [x25, #32]
	str	w24, [x25]
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_adapdata
Lloh5:
	adrp	x8, _nouveau_i2c_bit_algo@GOTPAGE
Lloh6:
	ldr	x8, [x8, _nouveau_i2c_bit_algo@GOTPAGEOFF]
	cmp	x22, x8
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [x23, #8]
Lloh7:
	adrp	x8, _CSTMSEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CSTMSEL@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nouveau_boolopt
	cbz	w0, LBB0_6
LBB0_3:
	stp	x22, x25, [x25, #16]
	mov	x0, x21
	bl	_i2c_add_adapter
	cbnz	w0, LBB0_5
LBB0_4:
	add	x0, x25, #8
	mov	x1, x19
	bl	_list_add_tail
	mov	x0, x20
	bl	_atomic_dec
	mov	x0, x19
	bl	_atomic_dec
	mov	w0, #0
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.7:
	mov	x22, x0
	mov	w8, #10
	str	w8, [x0, #4]
	mov	w0, #2200
	bl	_usecs_to_jiffies
	str	w0, [x22, #80]
	str	x25, [x22, #72]
Lloh15:
	adrp	x8, _nouveau_i2c_pre_xfer@GOTPAGE
Lloh16:
	ldr	x8, [x8, _nouveau_i2c_pre_xfer@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x22, #64]
Lloh18:
	adrp	x8, _nouveau_i2c_setsda@GOTPAGE
Lloh19:
	ldr	x8, [x8, _nouveau_i2c_setsda@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _nouveau_i2c_setscl@GOTPAGE
Lloh22:
	ldr	x9, [x9, _nouveau_i2c_setscl@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #56]
Lloh24:
	adrp	x8, _nouveau_i2c_getsda@GOTPAGE
Lloh25:
	ldr	x8, [x8, _nouveau_i2c_getsda@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
Lloh27:
	adrp	x9, _nouveau_i2c_getscl@GOTPAGE
Lloh28:
	ldr	x9, [x9, _nouveau_i2c_getscl@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #48]
	str	x22, [x25, #24]
	mov	x0, x21
	bl	_i2c_bit_add_bus
	cbnz	w0, LBB0_5
	b	LBB0_4
LBB0_8:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nouveau-%s-%d"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_nouveau_i2c_bit_algo,4,2       ; @nouveau_i2c_bit_algo
l_.str.1:                               ; @.str.1
	.asciz	"NvI2C"

	.comm	_CSTMSEL,4,2                    ; @CSTMSEL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nouveau_i2c_pre_xfer,4,2       ; @nouveau_i2c_pre_xfer
	.comm	_nouveau_i2c_setsda,4,2         ; @nouveau_i2c_setsda
	.comm	_nouveau_i2c_setscl,4,2         ; @nouveau_i2c_setscl
	.comm	_nouveau_i2c_getsda,4,2         ; @nouveau_i2c_getsda
	.comm	_nouveau_i2c_getscl,4,2         ; @nouveau_i2c_getscl
.subsections_via_symbols
