	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_cm_id_to_port_list
_add_cm_id_to_port_list:                ## @add_cm_id_to_port_list
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_cm@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	leaq	12(%rbx), %rax
	cmpq	%r15, %rax
	je	LBB0_1
## %bb.2:
	leaq	4(%rbx), %rax
	cmpq	%r15, %rax
	je	LBB0_3
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	addq	$8, %rbx
	addq	$4, %r14
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_list_add_tail
	xorl	%ebx, %ebx
LBB0_5:
	movq	_cm@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cm,4,2                         ## @cm
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_add_cm_id_to_port_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_cm_id_to_port_list
_add_cm_id_to_port_list:                ; @add_cm_id_to_port_list
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _cm@GOTPAGE
Lloh1:
	ldr	x0, [x0, _cm@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	add	x8, x20, #12
	cmp	x8, x21
	b.eq	LBB0_3
; %bb.1:
	add	x8, x20, #4
	cmp	x8, x21
	b.eq	LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_6
LBB0_3:
	add	x0, x20, #8
	add	x1, x19, #4
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	mov	x1, x19
LBB0_5:
	bl	_list_add_tail
	mov	w19, #0
LBB0_6:
Lloh5:
	adrp	x0, _cm@GOTPAGE
Lloh6:
	ldr	x0, [x0, _cm@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_cm,4,2                         ; @cm
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_add_cm_id_to_port_list
.subsections_via_symbols
