	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_i2c_bus_new               ## -- Begin function nv50_i2c_bus_new
	.p2align	4, 0x90
_nv50_i2c_bus_new:                      ## @nv50_i2c_bus_new
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r12
	leaq	_nv50_i2c_bus_new.addr(%rip), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rbx, %rax
	jbe	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rcx
	addq	$8, %rcx
	movq	%rcx, (%r13)
	movq	_nv50_i2c_bus_func@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_nvkm_i2c_bus_ctor
	leaq	_nv50_i2c_bus_new.addr(%rip), %rax
	movl	(%rax,%rbx,4), %eax
	movl	%eax, (%r14)
	movl	$7, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_nvkm_warn
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @nv50_i2c_bus_new.addr
_nv50_i2c_bus_new.addr:
	.long	57656                           ## 0xe138
	.long	57680                           ## 0xe150
	.long	57704                           ## 0xe168
	.long	57728                           ## 0xe180
	.long	57940                           ## 0xe254
	.long	57972                           ## 0xe274
	.long	59236                           ## 0xe764
	.long	59264                           ## 0xe780
	.long	59292                           ## 0xe79c
	.long	59320                           ## 0xe7b8

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bus %d unknown\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nv50_i2c_bus_func,4,2          ## @nv50_i2c_bus_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_i2c_bus_new               ; -- Begin function nv50_i2c_bus_new
	.p2align	2
_nv50_i2c_bus_new:                      ; @nv50_i2c_bus_new
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x20, _nv50_i2c_bus_new.addr@PAGE
Lloh1:
	add	x20, x20, _nv50_i2c_bus_new.addr@PAGEOFF
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x0, x19
	b.ls	LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x24, x0
	add	x3, x0, #8
	str	x3, [x23]
Lloh5:
	adrp	x0, _nv50_i2c_bus_func@GOTPAGE
Lloh6:
	ldr	x0, [x0, _nv50_i2c_bus_func@GOTPAGEOFF]
	mov	x1, x22
	mov	x2, x21
	bl	_nvkm_i2c_bus_ctor
	mov	w0, #0
	ldr	w8, [x20, x19, lsl #2]
	mov	w9, #7
	stp	w8, w9, [x24]
	b	LBB0_6
LBB0_3:
	ldr	x0, [x22]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_nvkm_warn
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @nv50_i2c_bus_new.addr
_nv50_i2c_bus_new.addr:
	.long	57656                           ; 0xe138
	.long	57680                           ; 0xe150
	.long	57704                           ; 0xe168
	.long	57728                           ; 0xe180
	.long	57940                           ; 0xe254
	.long	57972                           ; 0xe274
	.long	59236                           ; 0xe764
	.long	59264                           ; 0xe780
	.long	59292                           ; 0xe79c
	.long	59320                           ; 0xe7b8

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bus %d unknown\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nv50_i2c_bus_func,4,2          ; @nv50_i2c_bus_func
.subsections_via_symbols
