	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	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), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	%r14, 16(%rbx)
	movq	_i2c_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	callq	_driver_register
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	___process_new_driver@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_for_each_dev
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_is_registered,4,2              ## @is_registered
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_i2c_bus_type,4,2               ## @i2c_bus_type
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"driver [%s] registered\n"

	.comm	___process_new_driver,4,2       ## @__process_new_driver
.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	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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _is_registered@GOTPAGE
Lloh1:
	ldr	x8, [x8, _is_registered@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _i2c_bus_type@GOTPAGE
Lloh7:
	ldr	x8, [x8, _i2c_bus_type@GOTPAGEOFF]
	stp	x8, x20, [x19, #8]
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_driver_register
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w1, [x19]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh10:
	adrp	x8, ___process_new_driver@GOTPAGE
Lloh11:
	ldr	x8, [x8, ___process_new_driver@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_for_each_dev
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_is_registered,4,2              ; @is_registered
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_i2c_bus_type,4,2               ; @i2c_bus_type
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"driver [%s] registered\n"

	.comm	___process_new_driver,4,2       ; @__process_new_driver
.subsections_via_symbols
