	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LibAliasSetMode                ## -- Begin function LibAliasSetMode
	.p2align	4, 0x90
_LibAliasSetMode:                       ## @LibAliasSetMode
	.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
	movl	%edx, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_LIBALIAS_LOCK
	movl	%ebx, %r13d
	andl	%r15d, %r13d
	movq	_PKT_ALIAS_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r13d, %eax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_InitPacketAliasLog
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	movl	$-1, %r12d
	cmpq	(%rcx), %rax
	jne	LBB0_4
	jmp	LBB0_9
LBB0_2:
	movl	%r15d, %ecx
	notl	%ecx
	andl	%ebx, %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_UninitPacketAliasLog
LBB0_4:
	movq	_PKT_ALIAS_PUNCH_FW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r13d, %eax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_InitPunchFW
	jmp	LBB0_8
LBB0_6:
	notl	%r15d
	andl	%ebx, %r15d
	testl	%eax, %r15d
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_UninitPunchFW
LBB0_8:
	notl	%ebx
	andl	(%r14), %ebx
	orl	%r13d, %ebx
	movl	%ebx, (%r14)
	movl	%ebx, %r12d
LBB0_9:
	movq	%r14, %rdi
	callq	_LIBALIAS_UNLOCK
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKT_ALIAS_LOG,4,2              ## @PKT_ALIAS_LOG
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_PKT_ALIAS_PUNCH_FW,4,2         ## @PKT_ALIAS_PUNCH_FW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LibAliasSetMode                ; -- Begin function LibAliasSetMode
	.p2align	2
_LibAliasSetMode:                       ; @LibAliasSetMode
	.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	x21, x1
	mov	x19, x0
	bl	_LIBALIAS_LOCK
	and	w22, w20, w21
Lloh0:
	adrp	x8, _PKT_ALIAS_LOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PKT_ALIAS_LOG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_InitPacketAliasLog
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.2:
	mov	w20, #-1
	b	LBB0_10
LBB0_3:
	bic	w9, w20, w21
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_UninitPacketAliasLog
LBB0_5:
Lloh6:
	adrp	x8, _PKT_ALIAS_PUNCH_FW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PKT_ALIAS_PUNCH_FW@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_InitPunchFW
	b	LBB0_9
LBB0_7:
	bic	w9, w20, w21
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_UninitPunchFW
LBB0_9:
	ldr	w8, [x19]
	bic	w8, w8, w20
	orr	w20, w8, w22
	str	w20, [x19]
LBB0_10:
	mov	x0, x19
	bl	_LIBALIAS_UNLOCK
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PKT_ALIAS_LOG,4,2              ; @PKT_ALIAS_LOG
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_PKT_ALIAS_PUNCH_FW,4,2         ; @PKT_ALIAS_PUNCH_FW
.subsections_via_symbols
