	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tap_set_queue
_tap_set_queue:                         ## @tap_set_queue
	.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	(%rdi), %rax
	movq	_MAX_TAP_QUEUES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	64(%rdx), %edi
	movq	%r14, %rsi
	callq	_rcu_assign_pointer
	movq	8(%r14), %rax
	movq	56(%r14), %rcx
	movl	(%rcx,%rax,4), %edi
	movq	%rbx, %rsi
	callq	_rcu_assign_pointer
	leaq	48(%rbx), %rdi
	callq	_sock_hold
	movq	%r15, 40(%rbx)
	movq	8(%r14), %rax
	movq	%rax, 16(%rbx)
	movl	$1, 24(%rbx)
	movq	%rbx, (%r15)
	addq	$32, %rbx
	leaq	28(%r14), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movdqu	(%r14), %xmm0
	pcmpeqd	%xmm1, %xmm1
	psubq	%xmm1, %xmm0
	movdqu	%xmm0, (%r14)
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TAP_QUEUES,8,3             ## @MAX_TAP_QUEUES
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_tap_set_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tap_set_queue
_tap_set_queue:                         ; @tap_set_queue
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _MAX_TAP_QUEUES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_TAP_QUEUES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x2, #64]
	mov	x1, x19
	bl	_rcu_assign_pointer
	ldr	x8, [x19, #56]
	ldr	x9, [x19, #8]
	ldr	w0, [x8, x9, lsl #2]
	mov	x1, x20
	bl	_rcu_assign_pointer
	add	x0, x20, #48
	bl	_sock_hold
	str	x21, [x20, #40]
	ldr	x8, [x19, #8]
	str	x8, [x20, #16]
	mov	w22, #1
	str	w22, [x20, #24]
	str	x20, [x21]
	add	x0, x20, #32
	add	x1, x19, #28
	bl	_list_add_tail
	mov	w0, #0
	ldr	q0, [x19]
	dup.2d	v1, x22
	add.2d	v0, v0, v1
	str	q0, [x19]
LBB0_3:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TAP_QUEUES,8,3             ; @MAX_TAP_QUEUES
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_tap_set_queue
.subsections_via_symbols
