	.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, %rbx
	callq	_get_free_i2c_dev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_i2c_dev_class@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	leaq	8(%rbx), %r12
	movq	_I2C_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_MKDEV
	movl	(%rbx), %r9d
	leaq	L_.str(%rip), %r8
	movl	%r15d, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_device_create
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_6
LBB0_3:
	movq	_dev_attr_name@GOTPCREL(%rip), %rsi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %r15d
	movl	(%r13), %r12d
	movq	_I2C_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_MKDEV
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_device_destroy
LBB0_6:
	movq	%r14, %rdi
	callq	_return_i2c_dev
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_i2c_dev_class,4,2              ## @i2c_dev_class
	.comm	_I2C_MAJOR,4,2                  ## @I2C_MAJOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c-%d"

	.comm	_dev_attr_name,4,2              ## @dev_attr_name
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	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	x20, x0
	bl	_get_free_i2c_dev
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x22, _i2c_dev_class@GOTPAGE
Lloh1:
	ldr	x22, [x22, _i2c_dev_class@GOTPAGEOFF]
	ldr	w21, [x22]
Lloh2:
	adrp	x23, _I2C_MAJOR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _I2C_MAJOR@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x20]
	bl	_MKDEV
	mov	x2, x0
	mov	x1, x20
	ldr	w5, [x1], #8
Lloh4:
	adrp	x4, l_.str@PAGE
Lloh5:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x21
	mov	x3, #0
	bl	_device_create
	str	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x1, _dev_attr_name@GOTPAGE
Lloh7:
	ldr	x1, [x1, _dev_attr_name@GOTPAGEOFF]
	bl	_device_create_file
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w22, [x22]
	ldr	w0, [x23]
	ldr	w1, [x20]
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x22
	bl	_device_destroy
LBB0_6:
	mov	x0, x19
	bl	_return_i2c_dev
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	ldp	w2, w1, [x20]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	b	LBB0_7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_i2c_dev_class,4,2              ; @i2c_dev_class
	.comm	_I2C_MAJOR,4,2                  ; @I2C_MAJOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c-%d"

	.comm	_dev_attr_name,4,2              ; @dev_attr_name
l_.str.1:                               ; @.str.1
	.asciz	"i2c-dev: adapter [%s] registered as minor %d\n"

	.no_dead_strip	_i2cdev_attach_adapter
.subsections_via_symbols
