	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gif_delete_tunnel
_gif_delete_tunnel:                     ## @gif_delete_tunnel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_SA_XLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_gif_ioctl_sx@GOTPCREL(%rip), %rdi
	callq	_sx_assert
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	movq	_srchash@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_CK_LIST_REMOVE
	movq	_chain@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_CK_LIST_REMOVE
	xorl	%eax, %eax
	callq	_GIF_WAIT
	movl	8(%r14), %edi
	movq	_M_GIF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
LBB0_2:
	movq	$0, (%r14)
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	movq	%r14, %rdi
	callq	_GIF2IFP
	andl	%ebx, (%rax)
	movq	%r14, %rdi
	callq	_GIF2IFP
	movq	_LINK_STATE_DOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_if_link_state_change           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gif_ioctl_sx,4,2               ## @gif_ioctl_sx
	.comm	_SA_XLOCKED,4,2                 ## @SA_XLOCKED
	.comm	_srchash,4,2                    ## @srchash
	.comm	_chain,4,2                      ## @chain
	.comm	_M_GIF,4,2                      ## @M_GIF
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_LINK_STATE_DOWN,4,2            ## @LINK_STATE_DOWN
	.no_dead_strip	_gif_delete_tunnel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gif_delete_tunnel
_gif_delete_tunnel:                     ; @gif_delete_tunnel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _SA_XLOCKED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SA_XLOCKED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _gif_ioctl_sx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _gif_ioctl_sx@GOTPAGEOFF]
	bl	_sx_assert
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _srchash@GOTPAGE
Lloh6:
	ldr	x8, [x8, _srchash@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CK_LIST_REMOVE
Lloh8:
	adrp	x8, _chain@GOTPAGE
Lloh9:
	ldr	x8, [x8, _chain@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_CK_LIST_REMOVE
	bl	_GIF_WAIT
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x8, _M_GIF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_GIF@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_free
LBB0_2:
	str	xzr, [x19]
Lloh14:
	adrp	x8, _IFF_DRV_RUNNING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_GIF2IFP
	ldr	w8, [x0]
	bic	w8, w8, w20
	str	w8, [x0]
	mov	x0, x19
	bl	_GIF2IFP
Lloh17:
	adrp	x8, _LINK_STATE_DOWN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LINK_STATE_DOWN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_if_link_state_change
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_gif_ioctl_sx,4,2               ; @gif_ioctl_sx
	.comm	_SA_XLOCKED,4,2                 ; @SA_XLOCKED
	.comm	_srchash,4,2                    ; @srchash
	.comm	_chain,4,2                      ; @chain
	.comm	_M_GIF,4,2                      ; @M_GIF
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_LINK_STATE_DOWN,4,2            ; @LINK_STATE_DOWN
	.no_dead_strip	_gif_delete_tunnel
.subsections_via_symbols
