	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atrtr_create
_atrtr_create:                          ## @atrtr_create
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	8(%rdi), %rax
	movq	_AF_APPLETALK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	leaq	4(%rdi), %r13
	testq	%rsi, %rsi
	jne	LBB0_3
## %bb.2:
	cmpq	%rax, (%r13)
	jne	LBB0_31
LBB0_3:
	leaq	8(%r14), %r15
	movq	_atalk_routes_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock_bh
	movq	_atalk_routes@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movb	$1, %sil
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.4:
	movl	(%r14), %eax
	movq	_RTF_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	48(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rbx), %eax
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rdx
	cmpq	32(%rbx), %rdx
	jne	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, %ecx
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r15), %rdx
	cmpq	40(%rbx), %rdx
	jne	LBB0_5
LBB0_13:
	xorl	%esi, %esi
	testq	%r12, %r12
	jne	LBB0_12
LBB0_14:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	_atalk_interfaces_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock_bh
	movq	_atalk_interfaces@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	40(%r14), %r14
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	testq	%r14, %r14
	je	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	testq	%r12, %r12
	jne	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r13), %rdi
	callq	_ntohs
	movq	%rax, %r12
	movq	24(%r14), %rdi
	callq	_ntohs
	cmpq	%rax, %r12
	jl	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r13), %rdi
	callq	_ntohs
	movq	%rax, %r12
	movq	32(%r14), %rdi
	callq	_ntohs
	cmpq	%rax, %r12
	jg	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r14, %r12
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	xorl	%r12d, %r12d
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r13), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_15
## %bb.24:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	16(%r13), %rax
	cmpq	16(%r14), %rax
	cmoveq	%r14, %r12
	jmp	LBB0_15
LBB0_11:
	xorl	%ebx, %ebx
	testq	%r12, %r12
	je	LBB0_14
LBB0_12:
	testb	%sil, %sil
	jne	LBB0_27
	jmp	LBB0_29
LBB0_25:
	movq	_atalk_interfaces_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock_bh
	testq	%r12, %r12
	je	LBB0_33
## %bb.26:
	movq	(%r12), %r12
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testb	%sil, %sil
	je	LBB0_29
LBB0_27:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$56, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_32
## %bb.28:
	movq	%rax, %rbx
	movq	_atalk_routes@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rax, 48(%rbx)
	movq	%rbx, (%rcx)
LBB0_29:
	movups	8(%r15), %xmm0
	movups	%xmm0, 32(%rbx)
	movq	%r12, %rdi
	callq	_dev_hold
	movq	%r12, 24(%rbx)
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movups	8(%r13), %xmm0
	movups	%xmm0, 8(%rbx)
	xorl	%r15d, %r15d
LBB0_30:
	movq	_atalk_routes_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock_bh
LBB0_31:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_30
LBB0_33:
	movq	_ENETUNREACH@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_30
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AF_APPLETALK,8,3               ## @AF_APPLETALK
	.comm	_atalk_routes_lock,4,2          ## @atalk_routes_lock
	.comm	_atalk_routes,8,3               ## @atalk_routes
	.comm	_RTF_HOST,4,2                   ## @RTF_HOST
	.comm	_atalk_interfaces_lock,4,2      ## @atalk_interfaces_lock
	.comm	_atalk_interfaces,8,3           ## @atalk_interfaces
	.comm	_ENETUNREACH,4,2                ## @ENETUNREACH
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_atrtr_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atrtr_create
_atrtr_create:                          ; @atrtr_create
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x0
	ldr	x8, [x23, #8]!
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	neg	w22, w9
Lloh3:
	adrp	x9, _AF_APPLETALK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AF_APPLETALK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	sub	x24, x23, #4
	cbnz	x1, LBB0_3
; %bb.2:
	ldr	x9, [x24]
	cmp	x9, x8
	b.ne	LBB0_32
LBB0_3:
Lloh6:
	adrp	x0, _atalk_routes_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _atalk_routes_lock@GOTPAGEOFF]
	bl	_write_lock_bh
Lloh8:
	adrp	x22, _atalk_routes@GOTPAGE
Lloh9:
	ldr	x22, [x22, _atalk_routes@GOTPAGEOFF]
	ldr	x20, [x22]
	cbz	x20, LBB0_20
; %bb.4:
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _RTF_HOST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RTF_HOST@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w9, w9, w8
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [x20, #48]
	cbz	x20, LBB0_20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x20]
	cmp	w8, w10
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x23, #8]
	ldr	x11, [x20, #32]
	cmp	x10, x11
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w9, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x10, [x23, #16]
	ldr	x11, [x20, #40]
	cmp	x10, x11
	b.ne	LBB0_5
LBB0_10:
	mov	w25, #0
	cbnz	x21, LBB0_21
LBB0_11:
Lloh13:
	adrp	x0, _atalk_interfaces_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _atalk_interfaces_lock@GOTPAGEOFF]
	bl	_read_lock_bh
Lloh15:
	adrp	x8, _atalk_interfaces@GOTPAGE
Lloh16:
	ldr	x8, [x8, _atalk_interfaces@GOTPAGEOFF]
Lloh17:
	ldr	x26, [x8]
	cbz	x26, LBB0_22
; %bb.12:
	mov	x21, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x26, [x26, #40]
	cbz	x26, LBB0_23
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	cbnz	x21, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x24, #8]
	bl	_ntohs
	mov	x21, x0
	ldr	x0, [x26, #24]
	bl	_ntohs
	cmp	x21, x0
	b.ge	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x21, #0
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x24, #8]
	bl	_ntohs
	mov	x21, x0
	ldr	x0, [x26, #32]
	bl	_ntohs
	cmp	x21, x0
	csel	x21, xzr, x26, gt
LBB0_18:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x24, #8]
	ldr	x9, [x26, #8]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.19:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x24, #16]
	ldr	x9, [x26, #16]
	cmp	x8, x9
	csel	x21, x26, x21, eq
	b	LBB0_13
LBB0_20:
	mov	w25, #1
	cbz	x21, LBB0_11
LBB0_21:
	cbnz	w25, LBB0_25
	b	LBB0_27
LBB0_22:
	mov	x21, #0
LBB0_23:
Lloh18:
	adrp	x0, _atalk_interfaces_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _atalk_interfaces_lock@GOTPAGEOFF]
	bl	_read_unlock_bh
	cbz	x21, LBB0_29
; %bb.24:
	ldr	x21, [x21]
	cbz	w25, LBB0_27
LBB0_25:
Lloh20:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w0, #56
	bl	_kzalloc
	cbz	x0, LBB0_28
; %bb.26:
	mov	x20, x0
	ldr	x8, [x22]
	str	x8, [x0, #48]
	str	x0, [x22]
LBB0_27:
	ldur	q0, [x23, #8]
	str	q0, [x20, #32]
	mov	x0, x21
	bl	_dev_hold
	mov	w22, #0
	str	x21, [x20, #24]
	ldr	w8, [x19]
	str	w8, [x20]
	ldur	q0, [x24, #8]
	stur	q0, [x20, #8]
	b	LBB0_31
LBB0_28:
Lloh23:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_30
LBB0_29:
Lloh25:
	adrp	x8, _ENETUNREACH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENETUNREACH@GOTPAGEOFF]
LBB0_30:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_31:
Lloh27:
	adrp	x0, _atalk_routes_lock@GOTPAGE
Lloh28:
	ldr	x0, [x0, _atalk_routes_lock@GOTPAGEOFF]
	bl	_write_unlock_bh
LBB0_32:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AF_APPLETALK,8,3               ; @AF_APPLETALK
	.comm	_atalk_routes_lock,4,2          ; @atalk_routes_lock
	.comm	_atalk_routes,8,3               ; @atalk_routes
	.comm	_RTF_HOST,4,2                   ; @RTF_HOST
	.comm	_atalk_interfaces_lock,4,2      ; @atalk_interfaces_lock
	.comm	_atalk_interfaces,8,3           ; @atalk_interfaces
	.comm	_ENETUNREACH,4,2                ; @ENETUNREACH
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_atrtr_create
.subsections_via_symbols
