	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_add_numbered_adapter       ## -- Begin function i2c_add_numbered_adapter
	.p2align	4, 0x90
_i2c_add_numbered_adapter:              ## @i2c_add_numbered_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	_MAX_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	%rdi, %r13
	movq	_i2c_adapter_idr@GOTPCREL(%rip), %r14
	movq	_core_lock@GOTPCREL(%rip), %r15
	movq	_EAGAIN@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	(%r12), %eax
	addl	%ebx, %eax
	jne	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_idr_pre_get
	testq	%rax, %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	-44(%rbp), %rcx
	callq	_idr_get_new_above
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %esi
	xorl	%ebx, %ebx
	cmpl	(%r13), %esi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_idr_remove
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%ebx, %ebx
	jne	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	callq	_i2c_register_adapter
	movl	%eax, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ID_MASK,4,2                ## @MAX_ID_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_i2c_adapter_idr,4,2            ## @i2c_adapter_idr
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_core_lock,4,2                  ## @core_lock
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i2c_add_numbered_adapter       ; -- Begin function i2c_add_numbered_adapter
	.p2align	2
_i2c_add_numbered_adapter:              ; @i2c_add_numbered_adapter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MAX_ID_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_ID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x19, x0
Lloh5:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	adrp	x20, _i2c_adapter_idr@GOTPAGE
Lloh8:
	ldr	x20, [x20, _i2c_adapter_idr@GOTPAGEOFF]
Lloh9:
	adrp	x21, _core_lock@GOTPAGE
Lloh10:
	ldr	x21, [x21, _core_lock@GOTPAGEOFF]
Lloh11:
	adrp	x24, _EBUSY@GOTPAGE
Lloh12:
	ldr	x24, [x24, _EBUSY@GOTPAGEOFF]
Lloh13:
	adrp	x25, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x25, [x25, _EAGAIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	neg	w22, w8
	mov	x0, x20
	bl	_idr_remove
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_mutex_unlock
	ldr	w8, [x25]
	cmn	w22, w8
	b.ne	LBB0_12
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_idr_pre_get
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_mutex_lock
	ldr	w2, [x19]
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_idr_get_new_above
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [sp, #12]
	ldr	w8, [x19]
	cmp	w1, w8
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w22, #0
	b	LBB0_4
LBB0_9:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_12:
	cbnz	w22, LBB0_11
; %bb.13:
	mov	x0, x19
	bl	_i2c_register_adapter
	mov	x22, x0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ID_MASK,4,2                ; @MAX_ID_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_i2c_adapter_idr,4,2            ; @i2c_adapter_idr
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_core_lock,4,2                  ; @core_lock
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
