	.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	%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, %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	_is_registered@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r13d
	jmp	LBB0_19
LBB0_2:
	movq	48(%r14), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	testq	%rax, %rax
	jne	LBB0_19
## %bb.3:
	cmpl	$0, 88(%r14)
	je	LBB0_4
## %bb.5:
	cmpq	$0, 80(%r14)
	jne	LBB0_7
## %bb.6:
	movq	_i2c_adapter_lock_ops@GOTPCREL(%rip), %rax
	movq	%rax, 80(%r14)
LBB0_7:
	movq	$0, 72(%r14)
	leaq	68(%r14), %rdi
	callq	_rt_mutex_init
	leaq	64(%r14), %rdi
	callq	_rt_mutex_init
	leaq	60(%r14), %rdi
	callq	_mutex_init
	leaq	56(%r14), %rdi
	callq	_INIT_LIST_HEAD
	cmpq	$0, (%r14)
	jne	LBB0_9
## %bb.8:
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_9:
	movq	%r14, %rdi
	callq	_i2c_setup_host_notify_irq_domain
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %r13d
	movq	48(%r14), %rsi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_11
LBB0_4:
	movq	48(%r14), %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_19
LBB0_12:
	leaq	24(%r14), %r15
	movq	8(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_set_name
	movq	_i2c_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	movq	_i2c_adapter_type@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	%r15, %rdi
	callq	_device_register
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r13d
	movq	48(%r14), %rsi
	leaq	L_.str.4(%rip), %rdi
LBB0_11:
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_19:
	movq	_core_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	8(%r14), %rsi
	movq	_i2c_adapter_idr@GOTPCREL(%rip), %rdi
	callq	_idr_remove
LBB0_20:
	movq	_core_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	callq	_of_i2c_setup_smbus_alert
	testl	%eax, %eax
	je	LBB0_15
## %bb.18:
	movl	%eax, %r13d
	leaq	16(%r14), %r12
	movq	%r12, %rdi
	callq	_init_completion
	movq	%r15, %rdi
	callq	_device_unregister
	movq	%r12, %rdi
	callq	_wait_for_completion
	jmp	LBB0_19
LBB0_15:
	movq	48(%r14), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_pm_runtime_no_callbacks
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_pm_suspend_ignore_children
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	%r14, %rdi
	callq	_i2c_init_recovery
	movq	%r14, %rdi
	callq	_of_i2c_register_devices
	movq	%r14, %rdi
	callq	_i2c_acpi_register_devices
	movq	%r14, %rdi
	callq	_i2c_acpi_install_space_handler
	movq	8(%r14), %rax
	movq	___i2c_first_dynamic_bus_num@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_i2c_scan_static_board_info
LBB0_17:
	movq	_core_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	___process_new_adapter@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_i2c_bus_type@GOTPCREL(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_bus_for_each_drv
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_is_registered,4,2              ## @is_registered
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c adapter has no name"

L_.str.1:                               ## @.str.1
	.asciz	"adapter '%s': no algo supplied!\n"

	.comm	_i2c_adapter_lock_ops,4,2       ## @i2c_adapter_lock_ops
	.comm	_HZ,8,3                         ## @HZ
L_.str.2:                               ## @.str.2
	.asciz	"adapter '%s': can't create Host Notify IRQs (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"i2c-%d"

	.comm	_i2c_bus_type,4,2               ## @i2c_bus_type
	.comm	_i2c_adapter_type,4,2           ## @i2c_adapter_type
L_.str.4:                               ## @.str.4
	.asciz	"adapter '%s': can't register device (%d)\n"

L_.str.5:                               ## @.str.5
	.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	___process_new_adapter,4,2      ## @__process_new_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:
	sub	sp, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _is_registered@GOTPAGE
Lloh4:
	ldr	x8, [x8, _is_registered@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_3
LBB0_2:
	neg	w20, w20
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	cbz	x0, LBB0_5
LBB0_3:
Lloh11:
	adrp	x0, _core_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _core_lock@GOTPAGEOFF]
	bl	_mutex_lock
	ldr	x1, [x19, #8]
Lloh13:
	adrp	x0, _i2c_adapter_idr@GOTPAGE
Lloh14:
	ldr	x0, [x0, _i2c_adapter_idr@GOTPAGEOFF]
	bl	_idr_remove
LBB0_4:
Lloh15:
	adrp	x0, _core_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _core_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_5:
	ldr	w8, [x19, #88]
	cbz	w8, LBB0_12
; %bb.6:
	ldr	x8, [x19, #80]
	cbnz	x8, LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _i2c_adapter_lock_ops@GOTPAGE
Lloh18:
	ldr	x8, [x8, _i2c_adapter_lock_ops@GOTPAGEOFF]
	str	x8, [x19, #80]
LBB0_8:
	str	xzr, [x19, #72]
	add	x0, x19, #68
	bl	_rt_mutex_init
	add	x0, x19, #64
	bl	_rt_mutex_init
	add	x0, x19, #60
	bl	_mutex_init
	add	x0, x19, #56
	bl	_INIT_LIST_HEAD
	ldr	x8, [x19]
	cbnz	x8, LBB0_10
; %bb.9:
Lloh19:
	adrp	x8, _HZ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_10:
	mov	x0, x19
	bl	_i2c_setup_host_notify_irq_domain
	cbz	w0, LBB0_13
; %bb.11:
	mov	x20, x0
	ldr	x1, [x19, #48]
	str	x20, [sp]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_3
LBB0_12:
	ldr	x1, [x19, #48]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_3
LBB0_13:
	add	x21, x19, #24
	ldr	x2, [x19, #8]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_set_name
Lloh28:
	adrp	x8, _i2c_bus_type@GOTPAGE
Lloh29:
	ldr	x8, [x8, _i2c_bus_type@GOTPAGEOFF]
Lloh30:
	adrp	x9, _i2c_adapter_type@GOTPAGE
Lloh31:
	ldr	x9, [x9, _i2c_adapter_type@GOTPAGEOFF]
	stp	x9, x8, [x19, #32]
	mov	x0, x21
	bl	_device_register
	cbz	w0, LBB0_15
; %bb.14:
	mov	x20, x0
	ldr	x1, [x19, #48]
	str	x20, [sp]
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_3
LBB0_15:
	mov	x0, x19
	bl	_of_i2c_setup_smbus_alert
	cbz	w0, LBB0_17
; %bb.16:
	mov	x20, x0
	add	x22, x19, #16
	mov	x0, x22
	bl	_init_completion
	mov	x0, x21
	bl	_device_unregister
	mov	x0, x22
	bl	_wait_for_completion
	b	LBB0_3
LBB0_17:
	ldr	x2, [x19, #48]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
	mov	x0, x21
	bl	_pm_runtime_no_callbacks
	mov	x0, x21
	mov	w1, #1
	bl	_pm_suspend_ignore_children
	mov	x0, x21
	bl	_pm_runtime_enable
	mov	x0, x19
	bl	_i2c_init_recovery
	mov	x0, x19
	bl	_of_i2c_register_devices
	mov	x0, x19
	bl	_i2c_acpi_register_devices
	mov	x0, x19
	bl	_i2c_acpi_install_space_handler
	ldr	x8, [x19, #8]
Lloh36:
	adrp	x9, ___i2c_first_dynamic_bus_num@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___i2c_first_dynamic_bus_num@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_i2c_scan_static_board_info
LBB0_19:
Lloh39:
	adrp	x0, _core_lock@GOTPAGE
Lloh40:
	ldr	x0, [x0, _core_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh41:
	adrp	x8, ___process_new_adapter@GOTPAGE
Lloh42:
	ldr	x8, [x8, ___process_new_adapter@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
Lloh44:
	adrp	x0, _i2c_bus_type@GOTPAGE
Lloh45:
	ldr	x0, [x0, _i2c_bus_type@GOTPAGEOFF]
	mov	x1, #0
	mov	x2, x19
	bl	_bus_for_each_drv
	mov	w20, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_is_registered,4,2              ; @is_registered
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c adapter has no name"

l_.str.1:                               ; @.str.1
	.asciz	"adapter '%s': no algo supplied!\n"

	.comm	_i2c_adapter_lock_ops,4,2       ; @i2c_adapter_lock_ops
	.comm	_HZ,8,3                         ; @HZ
l_.str.2:                               ; @.str.2
	.asciz	"adapter '%s': can't create Host Notify IRQs (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"i2c-%d"

	.comm	_i2c_bus_type,4,2               ; @i2c_bus_type
	.comm	_i2c_adapter_type,4,2           ; @i2c_adapter_type
l_.str.4:                               ; @.str.4
	.asciz	"adapter '%s': can't register device (%d)\n"

l_.str.5:                               ; @.str.5
	.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	___process_new_adapter,4,2      ; @__process_new_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
