	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_i2c_port_ctor
_nv50_i2c_port_ctor:                    ## @nv50_i2c_port_ctor
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%r8d, %eax
	movq	%rcx, %r14
	movq	_nouveau_i2c_bit_algo@GOTPCREL(%rip), %r8
	leaq	-32(%rbp), %r9
	movl	%eax, %ecx
	callq	_nouveau_i2c_port_create
	movl	%eax, %ebx
	movq	-32(%rbp), %rdi
	callq	_nv_object
	movq	%rax, (%r15)
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.1:
	movq	(%r14), %rax
	movq	_nv50_i2c_addr_nr@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jae	LBB0_2
## %bb.3:
	movq	-32(%rbp), %rcx
	movq	_nv50_i2c_func@GOTPCREL(%rip), %rdx
	movq	%rdx, 8(%rcx)
	movl	$7, (%rcx)
	movq	_nv50_i2c_addr@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rax,4), %eax
	movl	%eax, 4(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nouveau_i2c_bit_algo,4,2       ## @nouveau_i2c_bit_algo
	.comm	_nv50_i2c_addr_nr,8,3           ## @nv50_i2c_addr_nr
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nv50_i2c_func,4,2              ## @nv50_i2c_func
	.comm	_nv50_i2c_addr,8,3              ## @nv50_i2c_addr
	.no_dead_strip	_nv50_i2c_port_ctor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_i2c_port_ctor
_nv50_i2c_port_ctor:                    ; @nv50_i2c_port_ctor
	.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, x5
	mov	x8, x4
	mov	x20, x3
Lloh0:
	adrp	x4, _nouveau_i2c_bit_algo@GOTPAGE
Lloh1:
	ldr	x4, [x4, _nouveau_i2c_bit_algo@GOTPAGEOFF]
	add	x5, sp, #8
	mov	x3, x8
	bl	_nouveau_i2c_port_create
	mov	x19, x0
	ldr	x0, [sp, #8]
	bl	_nv_object
	str	x0, [x21]
	cbnz	w19, LBB0_4
; %bb.1:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _nv50_i2c_addr_nr@GOTPAGE
Lloh3:
	ldr	x9, [x9, _nv50_i2c_addr_nr@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.2:
	mov	w19, #0
	ldr	x9, [sp, #8]
Lloh5:
	adrp	x10, _nv50_i2c_func@GOTPAGE
Lloh6:
	ldr	x10, [x10, _nv50_i2c_func@GOTPAGEOFF]
	str	x10, [x9, #8]
	mov	w10, #7
	str	w10, [x9]
Lloh7:
	adrp	x10, _nv50_i2c_addr@GOTPAGE
Lloh8:
	ldr	x10, [x10, _nv50_i2c_addr@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	ldr	w8, [x10, x8, lsl #2]
	str	w8, [x9, #4]
	b	LBB0_4
LBB0_3:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_4:
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_nouveau_i2c_bit_algo,4,2       ; @nouveau_i2c_bit_algo
	.comm	_nv50_i2c_addr_nr,8,3           ; @nv50_i2c_addr_nr
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nv50_i2c_func,4,2              ; @nv50_i2c_func
	.comm	_nv50_i2c_addr,8,3              ; @nv50_i2c_addr
	.no_dead_strip	_nv50_i2c_port_ctor
.subsections_via_symbols
