	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2cdev_attach_adapter
_i2cdev_attach_adapter:                 ## @i2cdev_attach_adapter
	.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	(%rdi), %rax
	xorl	%ebx, %ebx
	cmpq	_i2c_adapter_type@GOTPCREL(%rip), %rax
	je	LBB0_1
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	callq	_to_i2c_adapter
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_get_free_i2c_dev
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.7:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_2:
	movq	_i2cdev_fops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_cdev_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movq	_I2C_MAJOR@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%r14), %esi
	callq	_MKDEV
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_cdev_add
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_i2c_dev_class@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %r13
	addq	$8, %r13
	movl	(%r12), %edi
	movl	(%r14), %esi
	callq	_MKDEV
	movl	(%r14), %r9d
	leaq	L_.str(%rip), %r8
	xorl	%ebx, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_device_create
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	8(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_cdev_del
LBB0_5:
	movq	%r15, %rdi
	callq	_put_i2c_dev
	jmp	LBB0_6
LBB0_8:
	movl	(%r14), %edx
	movl	4(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_i2c_adapter_type,4,2           ## @i2c_adapter_type
	.comm	_i2cdev_fops,4,2                ## @i2cdev_fops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_MAJOR,4,2                  ## @I2C_MAJOR
	.comm	_i2c_dev_class,4,2              ## @i2c_dev_class
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c-%d"

L_.str.1:                               ## @.str.1
	.asciz	"i2c-dev: adapter [%s] registered as minor %d\n"

	.no_dead_strip	_i2cdev_attach_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2cdev_attach_adapter
_i2cdev_attach_adapter:                 ; @i2cdev_attach_adapter
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _i2c_adapter_type@GOTPAGE
Lloh1:
	ldr	x9, [x9, _i2c_adapter_type@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_3
LBB0_1:
	mov	w21, #0
LBB0_2:
	mov	x0, x21
	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
LBB0_3:
	bl	_to_i2c_adapter
	mov	x20, x0
	bl	_get_free_i2c_dev
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	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
	b	_PTR_ERR
LBB0_5:
Lloh2:
	adrp	x1, _i2cdev_fops@GOTPAGE
Lloh3:
	ldr	x1, [x1, _i2cdev_fops@GOTPAGEOFF]
	mov	x0, x19
	bl	_cdev_init
Lloh4:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh7:
	adrp	x22, _I2C_MAJOR@GOTPAGE
Lloh8:
	ldr	x22, [x22, _I2C_MAJOR@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x20]
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_cdev_add
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.6:
Lloh9:
	adrp	x8, _i2c_dev_class@GOTPAGE
Lloh10:
	ldr	x8, [x8, _i2c_dev_class@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
	ldr	w0, [x22]
	ldr	w1, [x20]
	bl	_MKDEV
	mov	x2, x0
	mov	x1, x20
	ldr	w5, [x1], #8
Lloh12:
	adrp	x4, l_.str@PAGE
Lloh13:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, #0
	bl	_device_create
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x21, x0
	mov	x0, x19
	bl	_cdev_del
LBB0_8:
	mov	x0, x19
	bl	_put_i2c_dev
	b	LBB0_2
LBB0_9:
	ldp	w2, w1, [x20]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_i2c_adapter_type,4,2           ; @i2c_adapter_type
	.comm	_i2cdev_fops,4,2                ; @i2cdev_fops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_MAJOR,4,2                  ; @I2C_MAJOR
	.comm	_i2c_dev_class,4,2              ; @i2c_dev_class
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c-%d"

l_.str.1:                               ; @.str.1
	.asciz	"i2c-dev: adapter [%s] registered as minor %d\n"

	.no_dead_strip	_i2cdev_attach_adapter
.subsections_via_symbols
