	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_llc_sap_open                   ## -- Begin function llc_sap_open
	.p2align	4, 0x90
_llc_sap_open:                          ## @llc_sap_open
	.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	%rsi, %r14
	movl	%edi, %r15d
	movq	_llc_sap_list_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	movl	%r15d, %edi
	callq	___llc_sap_find
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_llc_sap_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %r12
	movb	%r15b, 8(%rax)
	movq	%r14, (%rax)
	movq	%rax, %rdi
	callq	_llc_add_sap
	movq	%r12, %rbx
LBB0_3:
	movq	_llc_sap_list_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_llc_sap_list_lock,4,2          ## @llc_sap_list_lock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_llc_sap_open                   ; -- Begin function llc_sap_open
	.p2align	2
_llc_sap_open:                          ; @llc_sap_open
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x0, _llc_sap_list_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _llc_sap_list_lock@GOTPAGEOFF]
	bl	_write_lock_bh
	mov	x0, x21
	bl	___llc_sap_find
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_4
LBB0_2:
	bl	_llc_sap_alloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.3:
	strb	w21, [x20, #8]
	str	x19, [x20]
	mov	x0, x20
	bl	_llc_add_sap
LBB0_4:
Lloh2:
	adrp	x0, _llc_sap_list_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _llc_sap_list_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
	mov	x0, x20
	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 AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_llc_sap_list_lock,4,2          ; @llc_sap_list_lock
.subsections_via_symbols
