	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ksz_adjust_link                ## -- Begin function ksz_adjust_link
	.p2align	4, 0x90
_ksz_adjust_link:                       ## @ksz_adjust_link
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	(%rdi), %rbx
	cmpl	$0, (%rdx)
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movslq	%r15d, %rcx
	movl	$1, (%rax,%rcx,4)
	leaq	12(%rbx), %rdi
	callq	_schedule_work
LBB0_2:
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	cmpl	$0, (%r14)
	je	LBB0_3
## %bb.4:
	andl	4(%rbx), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_3:
	notl	%eax
	andl	%eax, (%rbx)
LBB0_5:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ksz_adjust_link                ; -- Begin function ksz_adjust_link
	.p2align	2
_ksz_adjust_link:                       ; @ksz_adjust_link
	.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	x20, x2
	mov	x19, x1
	ldr	x22, [x0]
	ldr	w8, [x2]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x22, #16]
	mov	w9, #1
	str	w9, [x8, w19, sxtw #2]
	add	x0, x22, #12
	bl	_schedule_work
LBB0_2:
	add	x21, x22, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	w9, [x20]
	mov	w8, #1
	lsl	w8, w8, w19
	cbz	w9, LBB0_4
; %bb.3:
	ldp	w10, w9, [x22]
	and	w8, w9, w8
	orr	w8, w10, w8
	b	LBB0_5
LBB0_4:
	ldr	w9, [x22]
	bic	w8, w9, w8
LBB0_5:
	str	w8, [x22]
	mov	x0, x21
	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	_mutex_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
