	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_register_adapter
_i2c_register_adapter:                  ## @i2c_register_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_i2c_bus_type@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	$0, (%rbx)
	sete	%dil
	callq	_WARN_ON
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_2
LBB0_3:
	leaq	44(%r14), %rdi
	callq	_mutex_init
	cmpq	$0, (%r14)
	jne	LBB0_5
## %bb.4:
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_5:
	leaq	16(%r14), %r15
	movq	8(%r14), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_set_name
	movq	%rbx, 32(%r14)
	movq	_i2c_adapter_type@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	%r15, %rdi
	callq	_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_2:
	movq	_core_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	8(%r14), %rsi
	movq	_i2c_adapter_idr@GOTPCREL(%rip), %rdi
	callq	_idr_remove
LBB0_9:
	movq	_core_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	40(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	8(%r14), %rax
	movq	___i2c_first_dynamic_bus_num@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_i2c_scan_static_board_info
LBB0_8:
	movq	_core_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_i2c_do_add_adapter@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_i2c_bus_type@GOTPCREL(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_bus_for_each_drv
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_i2c_bus_type,4,2               ## @i2c_bus_type
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_HZ,8,3                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c-%d"

	.comm	_i2c_adapter_type,4,2           ## @i2c_adapter_type
L_.str.1:                               ## @.str.1
	.asciz	"adapter [%s] registered\n"

	.comm	___i2c_first_dynamic_bus_num,8,3 ## @__i2c_first_dynamic_bus_num
	.comm	_core_lock,4,2                  ## @core_lock
	.comm	_i2c_do_add_adapter,4,2         ## @i2c_do_add_adapter
	.comm	_i2c_adapter_idr,4,2            ## @i2c_adapter_idr
	.comm	_i2c_adapter_compat_class,4,2   ## @i2c_adapter_compat_class
	.no_dead_strip	_i2c_register_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_register_adapter
_i2c_register_adapter:                  ; @i2c_register_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
	mov	x19, x0
Lloh0:
	adrp	x20, _i2c_bus_type@GOTPAGE
Lloh1:
	ldr	x20, [x20, _i2c_bus_type@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_2:
	add	x0, x19, #44
	bl	_mutex_init
	ldr	x8, [x19]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _HZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_4:
	add	x21, x19, #16
	ldr	x2, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_set_name
Lloh10:
	adrp	x8, _i2c_adapter_type@GOTPAGE
Lloh11:
	ldr	x8, [x8, _i2c_adapter_type@GOTPAGEOFF]
	stp	x8, x20, [x19, #24]
	mov	x0, x21
	bl	_device_register
	mov	x20, x0
	cbz	w0, LBB0_7
LBB0_5:
Lloh12:
	adrp	x0, _core_lock@GOTPAGE
Lloh13:
	ldr	x0, [x0, _core_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x1, [x19, #8]
Lloh14:
	adrp	x0, _i2c_adapter_idr@GOTPAGE
Lloh15:
	ldr	x0, [x0, _i2c_adapter_idr@GOTPAGEOFF]
	bl	_idr_remove
LBB0_6:
Lloh16:
	adrp	x0, _core_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _core_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x20
	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_7:
	ldr	w2, [x19, #40]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, ___i2c_first_dynamic_bus_num@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___i2c_first_dynamic_bus_num@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_i2c_scan_static_board_info
LBB0_9:
Lloh23:
	adrp	x0, _core_lock@GOTPAGE
Lloh24:
	ldr	x0, [x0, _core_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh25:
	adrp	x8, _i2c_do_add_adapter@GOTPAGE
Lloh26:
	ldr	x8, [x8, _i2c_do_add_adapter@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x0, _i2c_bus_type@GOTPAGE
Lloh29:
	ldr	x0, [x0, _i2c_bus_type@GOTPAGEOFF]
	mov	x1, #0
	mov	x2, x19
	bl	_bus_for_each_drv
	mov	w20, #0
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_i2c_bus_type,4,2               ; @i2c_bus_type
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_HZ,8,3                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c-%d"

	.comm	_i2c_adapter_type,4,2           ; @i2c_adapter_type
l_.str.1:                               ; @.str.1
	.asciz	"adapter [%s] registered\n"

	.comm	___i2c_first_dynamic_bus_num,8,3 ; @__i2c_first_dynamic_bus_num
	.comm	_core_lock,4,2                  ; @core_lock
	.comm	_i2c_do_add_adapter,4,2         ; @i2c_do_add_adapter
	.comm	_i2c_adapter_idr,4,2            ; @i2c_adapter_idr
	.comm	_i2c_adapter_compat_class,4,2   ; @i2c_adapter_compat_class
	.no_dead_strip	_i2c_register_adapter
.subsections_via_symbols
