	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_add_adapter                ## -- Begin function i2c_add_adapter
	.p2align	4, 0x90
_i2c_add_adapter:                       ## @i2c_add_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, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_of_alias_get_id
	testl	%eax, %eax
	js	LBB0_2
## %bb.4:
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___i2c_add_numbered_adapter     ## TAILCALL
LBB0_2:
	movq	_core_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	___i2c_first_dynamic_bus_num@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_i2c_adapter_idr@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_idr_alloc
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %edi
	shrl	$31, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_WARN
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r14d, (%rbx)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_register_adapter           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c"

	.comm	_core_lock,4,2                  ## @core_lock
	.comm	_i2c_adapter_idr,4,2            ## @i2c_adapter_idr
	.comm	___i2c_first_dynamic_bus_num,4,2 ## @__i2c_first_dynamic_bus_num
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"couldn't get idr"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_add_adapter                ; -- Begin function i2c_add_adapter
	.p2align	2
_i2c_add_adapter:                       ; @i2c_add_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
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_alias_get_id
	tbnz	w0, #31, LBB0_3
; %bb.2:
	str	w0, [x19]
	mov	x0, x19
	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
	b	___i2c_add_numbered_adapter
LBB0_3:
Lloh2:
	adrp	x21, _core_lock@GOTPAGE
Lloh3:
	ldr	x21, [x21, _core_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
Lloh4:
	adrp	x8, ___i2c_first_dynamic_bus_num@GOTPAGE
Lloh5:
	ldr	x8, [x8, ___i2c_first_dynamic_bus_num@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
Lloh10:
	adrp	x0, _i2c_adapter_idr@GOTPAGE
Lloh11:
	ldr	x0, [x0, _i2c_adapter_idr@GOTPAGEOFF]
	mov	x1, x19
	mov	w3, #0
	bl	_idr_alloc
	mov	x20, x0
	mov	x0, x21
	bl	_mutex_unlock
	lsr	w0, w20, #31
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_WARN
	cbz	x0, LBB0_5
; %bb.4:
	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_5:
	str	w20, [x19]
	mov	x0, x19
	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
	b	_i2c_register_adapter
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c"

	.comm	_core_lock,4,2                  ; @core_lock
	.comm	_i2c_adapter_idr,4,2            ; @i2c_adapter_idr
	.comm	___i2c_first_dynamic_bus_num,4,2 ; @__i2c_first_dynamic_bus_num
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"couldn't get idr"

.subsections_via_symbols
