	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_serial_by_index
_set_serial_by_index:                   ## @set_serial_by_index
	.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
	movl	%edi, %r14d
	movq	_serial_table_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	_serial_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, %edx
	movq	%rax, (%rcx,%rdx,8)
	movq	_serial_table_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_serial_table_lock,4,2          ## @serial_table_lock
	.comm	_serial_table,8,3               ## @serial_table
	.no_dead_strip	_set_serial_by_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_serial_by_index
_set_serial_by_index:                   ; @set_serial_by_index
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _serial_table_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _serial_table_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	b	LBB0_3
LBB0_2:
	mov	x8, #0
LBB0_3:
Lloh2:
	adrp	x9, _serial_table@GOTPAGE
Lloh3:
	ldr	x9, [x9, _serial_table@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	str	x8, [x9, w19, uxtw #3]
Lloh5:
	adrp	x0, _serial_table_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _serial_table_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_serial_table_lock,4,2          ; @serial_table_lock
	.comm	_serial_table,8,3               ; @serial_table
	.no_dead_strip	_set_serial_by_index
.subsections_via_symbols
