	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2cdev_detach_adapter
_i2cdev_detach_adapter:                 ## @i2cdev_detach_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_i2c_dev_get_by_minor
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	_dev_attr_name@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	%rbx, %rdi
	callq	_return_i2c_dev
	movq	_i2c_dev_class@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_I2C_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_MKDEV
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_device_destroy
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_name,4,2              ## @dev_attr_name
	.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-dev: adapter [%s] unregistered\n"

	.no_dead_strip	_i2cdev_detach_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2cdev_detach_adapter
_i2cdev_detach_adapter:                 ; @i2cdev_detach_adapter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_i2c_dev_get_by_minor
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, _dev_attr_name@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_name@GOTPAGEOFF]
	bl	_device_remove_file
	mov	x0, x20
	bl	_return_i2c_dev
Lloh2:
	adrp	x8, _i2c_dev_class@GOTPAGE
Lloh3:
	ldr	x8, [x8, _i2c_dev_class@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _I2C_MAJOR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_MAJOR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_MKDEV
	mov	x1, x0
	mov	x0, x20
	bl	_device_destroy
	ldr	w1, [x19]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_name,4,2              ; @dev_attr_name
	.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-dev: adapter [%s] unregistered\n"

	.no_dead_strip	_i2cdev_detach_adapter
.subsections_via_symbols
