	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_register_driver            ## -- Begin function i2c_register_driver
	.p2align	4, 0x90
_i2c_register_driver:                   ## @i2c_register_driver
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	_i2c_bus_type@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	sete	%dil
	callq	_WARN_ON
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_2:
	leaq	8(%r14), %rdi
	movq	%rbx, 24(%r14)
	movq	%r15, 16(%r14)
	callq	_driver_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	8(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	%r14, %rdi
	callq	_INIT_LIST_HEAD
	movq	_core_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	___attach_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_dev
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i2c_bus_type,4,2               ## @i2c_bus_type
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c-core: driver [%s] registered\n"

	.comm	_core_lock,4,2                  ## @core_lock
	.comm	___attach_adapter,4,2           ## @__attach_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_register_driver            ; -- Begin function i2c_register_driver
	.p2align	2
_i2c_register_driver:                   ; @i2c_register_driver
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _i2c_bus_type@GOTPAGE
Lloh1:
	ldr	x21, [x21, _i2c_bus_type@GOTPAGEOFF]
	ldr	w8, [x21]
	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	w0, w8
	b	LBB0_4
LBB0_2:
	add	x0, x19, #8
	stp	x21, x20, [x19, #16]
	bl	_driver_register
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x19, #8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_INIT_LIST_HEAD
Lloh7:
	adrp	x20, _core_lock@GOTPAGE
Lloh8:
	ldr	x20, [x20, _core_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
Lloh9:
	adrp	x8, ___attach_adapter@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___attach_adapter@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x0, _i2c_bus_type@GOTPAGE
Lloh13:
	ldr	x0, [x0, _i2c_bus_type@GOTPAGEOFF]
	mov	x1, #0
	mov	x2, x19
	bl	_bus_for_each_dev
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_i2c_bus_type,4,2               ; @i2c_bus_type
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c-core: driver [%s] registered\n"

	.comm	_core_lock,4,2                  ; @core_lock
	.comm	___attach_adapter,4,2           ; @__attach_adapter
.subsections_via_symbols
