	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipxrtr_add_route               ## -- Begin function ipxrtr_add_route
	.p2align	4, 0x90
_ipxrtr_add_route:                      ## @ipxrtr_add_route
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %r12d
	callq	_ipxrtr_lookup
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_ipx_internal_net@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_1:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.5:
	movq	%rax, %rbx
	leaq	24(%rax), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	%rbx, %rdi
	callq	_ipxrtr_hold
	movq	_ipx_routes_lock@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_write_lock_bh
	movq	%rbx, %rdi
	addq	$20, %rdi
	movq	_ipx_routes@GOTPCREL(%rip), %rsi
	callq	_list_add
	movq	%r13, %rdi
	callq	_write_unlock_bh
LBB0_6:
	movl	%r12d, 16(%rbx)
	movq	%r15, 8(%rbx)
	movl	4(%rbx), %edi
	movq	_IPX_NODE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testq	%r14, %r14
	je	LBB0_7
## %bb.8:
	movq	%r14, %rsi
	callq	_memcpy
	movl	$1, %r14d
	jmp	LBB0_9
LBB0_7:
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
LBB0_9:
	movl	%r14d, (%rbx)
	xorl	%r14d, %r14d
LBB0_10:
	movq	%rbx, %rdi
	callq	_ipxrtr_put
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ipx_routes_lock,4,2            ## @ipx_routes_lock
	.comm	_ipx_routes,4,2                 ## @ipx_routes
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_ipx_internal_net,8,3           ## @ipx_internal_net
	.comm	_IPX_NODE_LEN,4,2               ## @IPX_NODE_LEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipxrtr_add_route               ; -- Begin function ipxrtr_add_route
	.p2align	2
_ipxrtr_add_route:                      ; @ipxrtr_add_route
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_ipxrtr_lookup
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ipx_internal_net@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ipx_internal_net@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _EEXIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_3:
Lloh6:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_11
; %bb.4:
	mov	x19, x0
	add	x0, x0, #24
	mov	w1, #1
	bl	_atomic_set
	mov	x0, x19
	bl	_ipxrtr_hold
Lloh9:
	adrp	x23, _ipx_routes_lock@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ipx_routes_lock@GOTPAGEOFF]
	mov	x0, x23
	bl	_write_lock_bh
	add	x0, x19, #20
Lloh11:
	adrp	x1, _ipx_routes@GOTPAGE
Lloh12:
	ldr	x1, [x1, _ipx_routes@GOTPAGEOFF]
	bl	_list_add
	mov	x0, x23
	bl	_write_unlock_bh
LBB0_5:
	str	w22, [x19, #16]
	str	x21, [x19, #8]
	ldr	w0, [x19, #4]
Lloh13:
	adrp	x8, _IPX_NODE_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IPX_NODE_LEN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	cbz	x20, LBB0_7
; %bb.6:
	mov	x1, x20
	bl	_memcpy
	mov	w8, #1
	b	LBB0_8
LBB0_7:
	mov	w1, #0
	bl	_memset
	mov	w8, #0
LBB0_8:
	mov	w20, #0
	str	w8, [x19]
LBB0_9:
	mov	x0, x19
	bl	_ipxrtr_put
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh16:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ipx_routes_lock,4,2            ; @ipx_routes_lock
	.comm	_ipx_routes,4,2                 ; @ipx_routes
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_ipx_internal_net,8,3           ; @ipx_internal_net
	.comm	_IPX_NODE_LEN,4,2               ; @IPX_NODE_LEN
.subsections_via_symbols
