	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __esw_offloads_load_rep
___esw_offloads_load_rep:               ## @__esw_offloads_load_rep
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leaq	(,%rdx,4), %r15
	movq	(%rsi), %rdi
	addq	%r15, %rdi
	movq	_REP_REGISTERED@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	_REP_LOADED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_atomic_cmpxchg
	xorl	%r12d, %r12d
	cmpq	(%r13), %rax
	jne	LBB0_3
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rcx), %edi
	movq	%r14, %rsi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	addq	(%r14), %r15
	movq	_REP_REGISTERED@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_atomic_set
	movl	%ebx, %r12d
LBB0_3:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REP_REGISTERED,8,3             ## @REP_REGISTERED
	.comm	_REP_LOADED,4,2                 ## @REP_LOADED
	.no_dead_strip	___esw_offloads_load_rep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __esw_offloads_load_rep
___esw_offloads_load_rep:               ; @__esw_offloads_load_rep
	.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	x20, x1
	mov	x21, x0
	ldr	x8, [x1]
	add	x0, x8, x2, lsl #2
Lloh0:
	adrp	x22, _REP_REGISTERED@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REP_REGISTERED@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh2:
	adrp	x8, _REP_LOADED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REP_LOADED@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_atomic_cmpxchg
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8]
	ldr	w0, [x21]
	mov	x1, x20
	blr	x8
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	add	x0, x8, x19, lsl #2
	ldr	x1, [x22]
	bl	_atomic_set
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REP_REGISTERED,8,3             ; @REP_REGISTERED
	.comm	_REP_LOADED,4,2                 ; @REP_LOADED
	.no_dead_strip	___esw_offloads_load_rep
.subsections_via_symbols
