	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_i2c
_init_i2c:                              ## @init_i2c
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	callq	_nouveau_i2c
	movq	%rax, %r14
	cmpl	$255, %ebx
	jne	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	callq	_NV_I2C_DEFAULT
	movl	%eax, %ebx
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	cmpq	$0, 16(%rax)
	je	LBB0_9
## %bb.3:
	movl	$1, %edi
	callq	_NV_I2C_DEFAULT
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_4:
	testl	%ebx, %ebx
	jns	LBB0_9
## %bb.5:
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	cmpl	$-2, %ebx
	jne	LBB0_8
## %bb.7:
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.11:
	movl	4(%rax), %edi
	callq	_NV_I2C_TYPE_EXTAUX
	movq	8(%r14), %rcx
	movq	%r14, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
LBB0_8:
	movl	(%rax), %ebx
LBB0_9:
	movq	(%r14), %rax
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_error
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"script needs output for i2c\n"

	.no_dead_strip	_init_i2c
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_i2c
_init_i2c:                              ; @init_i2c
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_nouveau_i2c
	mov	x19, x0
	cmp	w20, #255
	b.ne	LBB0_4
; %bb.1:
	mov	w0, #0
	bl	_NV_I2C_DEFAULT
	mov	x20, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_10
; %bb.3:
	mov	w0, #1
	bl	_NV_I2C_DEFAULT
	mov	x20, x0
	b	LBB0_10
LBB0_4:
	tbz	w20, #31, LBB0_10
; %bb.5:
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.6:
	cmn	w20, #2
	b.ne	LBB0_9
; %bb.7:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_9
; %bb.8:
	ldr	w0, [x8, #4]
	bl	_NV_I2C_TYPE_EXTAUX
	mov	x1, x0
	ldr	x2, [x19, #8]
	mov	x0, x19
	b	LBB0_11
LBB0_9:
	ldr	w20, [x8]
LBB0_10:
	ldr	x2, [x19]
	mov	x0, x19
	mov	x1, x20
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x2
LBB0_12:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	mov	x0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"script needs output for i2c\n"

	.no_dead_strip	_init_i2c
.subsections_via_symbols
