	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atrtr_delete
_atrtr_delete:                          ## @atrtr_delete
	.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	_atalk_routes_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	movq	_atalk_routes@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	(%r14), %rcx
	movq	_RTF_GATEWAY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	movq	8(%rbx), %rsi
	addq	$8, %rax
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, 24(%rbx)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%edx, (%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%rbx), %rsi
	cmpq	8(%r14), %rsi
	jne	LBB0_6
LBB0_5:
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
	movl	16(%rbx), %edi
	callq	_dev_put
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	_atalk_routes_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_atalk_routes,8,3               ## @atalk_routes
	.comm	_atalk_routes_lock,4,2          ## @atalk_routes_lock
	.comm	_RTF_GATEWAY,4,2                ## @RTF_GATEWAY
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_atrtr_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atrtr_delete
_atrtr_delete:                          ; @atrtr_delete
	.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	x20, x0
Lloh0:
	adrp	x0, _atalk_routes_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _atalk_routes_lock@GOTPAGEOFF]
	bl	_write_lock_bh
Lloh2:
	adrp	x8, _atalk_routes@GOTPAGE
Lloh3:
	ldr	x8, [x8, _atalk_routes@GOTPAGEOFF]
Lloh4:
	ldr	x19, [x8]
	cbz	x19, LBB0_7
; %bb.1:
	ldr	x8, [x20]
Lloh5:
	adrp	x9, _RTF_GATEWAY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RTF_GATEWAY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _atalk_routes@GOTPAGE
Lloh9:
	ldr	x10, [x10, _atalk_routes@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x19, #8]!
	mov	x10, x19
	mov	x19, x11
	cbz	x11, LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19, #24]
	cmp	x11, x8
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x19]
	tst	w9, w11
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x19, #32]
	ldr	x12, [x20, #8]
	cmp	x11, x12
	b.ne	LBB0_2
LBB0_6:
	ldr	x8, [x19, #8]
	str	x8, [x10]
	ldr	w0, [x19, #16]
	bl	_dev_put
	mov	x0, x19
	bl	_kfree
	mov	w19, #0
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _ENOENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
Lloh13:
	adrp	x0, _atalk_routes_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _atalk_routes_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_atalk_routes,8,3               ; @atalk_routes
	.comm	_atalk_routes_lock,4,2          ; @atalk_routes_lock
	.comm	_RTF_GATEWAY,4,2                ; @RTF_GATEWAY
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_atrtr_delete
.subsections_via_symbols
