	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setstack_elsa
_setstack_elsa:                         ## @setstack_elsa
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movl	20(%rdi), %eax
	movl	%eax, 64(%rsi)
	movl	(%rdi), %eax
	cmpl	$130, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_9
LBB0_3:
	movl	16(%rbx), %edi
	movq	%r14, %rsi
	callq	_open_hscxstate
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.4:
	movq	_hscx_l2l1@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movl	$129, (%r14)
	movq	_BC_FLG_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	40(%r14), %r15
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	16(%r14), %rax
	movl	8(%rax), %eax
	movl	%eax, 32(%r14)
	leaq	60(%r14), %rdi
	callq	_skb_queue_head_init
	leaq	56(%r14), %rdi
	callq	_skb_queue_head_init
LBB0_7:
	movq	$0, 48(%r14)
	movq	_BC_FLG_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_and_clear_bit
	movl	$0, 36(%r14)
	movq	$0, 24(%r14)
	movq	16(%r14), %rax
	movq	%r14, (%rax)
	movq	_modem_l2l1@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
LBB0_9:
	movq	%r14, 8(%rbx)
	movq	%rbx, %rdi
	callq	_setstack_manager
	movq	%rbx, 8(%r14)
	movq	%rbx, %rdi
	callq	_setstack_l1_B
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hscx_l2l1,4,2                  ## @hscx_l2l1
	.comm	_BC_FLG_INIT,4,2                ## @BC_FLG_INIT
	.comm	_BC_FLG_BUSY,4,2                ## @BC_FLG_BUSY
	.comm	_modem_l2l1,4,2                 ## @modem_l2l1
	.no_dead_strip	_setstack_elsa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setstack_elsa
_setstack_elsa:                         ; @setstack_elsa
	.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, x1
	mov	x19, x0
	ldr	w8, [x0, #20]
	str	w8, [x1, #64]
	ldr	w8, [x0]
	cmp	w8, #130
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_10
LBB0_3:
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_open_hscxstate
	cbz	w0, LBB0_8
; %bb.4:
	mov	w0, #-1
	b	LBB0_11
LBB0_5:
	mov	x21, x20
	str	w8, [x21], #40
Lloh0:
	adrp	x8, _BC_FLG_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BC_FLG_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_set_bit
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x8, [x20, #16]
	ldr	w8, [x8, #8]
	str	w8, [x20, #32]
	add	x0, x20, #60
	bl	_skb_queue_head_init
	add	x0, x20, #56
	bl	_skb_queue_head_init
LBB0_7:
	str	xzr, [x20, #48]
Lloh3:
	adrp	x8, _BC_FLG_BUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BC_FLG_BUSY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_and_clear_bit
	str	wzr, [x20, #36]
	str	xzr, [x20, #24]
	ldr	x8, [x20, #16]
	str	x20, [x8]
Lloh6:
	adrp	x8, _modem_l2l1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _modem_l2l1@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _hscx_l2l1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hscx_l2l1@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x19, #24]
LBB0_10:
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_setstack_manager
	str	x19, [x20, #8]
	mov	x0, x19
	bl	_setstack_l1_B
	mov	w0, #0
LBB0_11:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_hscx_l2l1,4,2                  ; @hscx_l2l1
	.comm	_BC_FLG_INIT,4,2                ; @BC_FLG_INIT
	.comm	_BC_FLG_BUSY,4,2                ; @BC_FLG_BUSY
	.comm	_modem_l2l1,4,2                 ; @modem_l2l1
	.no_dead_strip	_setstack_elsa
.subsections_via_symbols
