	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ip_tunnel_bind_dev
_ip_tunnel_bind_dev:                    ## @ip_tunnel_bind_dev
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r12
	movq	_LL_MAX_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ETH_DATA_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r12), %ebx
	cmpq	$0, 32(%r12)
	je	LBB0_7
## %bb.1:
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_dev_net
	movl	%eax, %r15d
	movl	40(%r12), %ebx
	movq	32(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	28(%r12), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	16(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	24(%r12), %edi
	callq	_RT_TOS
                                        ## kill: def $eax killed $eax def $rax
	leaq	-80(%rbp), %rsi
	movl	%r15d, %edi
	movl	%ebx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	8(%r12)
	pushq	%rax
	callq	_ip_route_output_tunnel
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	xorl	%r15d, %r15d
	jmp	LBB0_4
LBB0_3:
	movq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_ip_rt_put
LBB0_4:
	movq	(%r14), %rax
	movq	_ARPHRD_ETHER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_6
## %bb.5:
	movq	_IFF_POINTOPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 32(%r14)
LBB0_6:
	testq	%r15, %r15
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_9
LBB0_7:
	cmpq	$0, 8(%r12)
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	movq	%rcx, %r15
	callq	_dev_net
	movq	8(%r12), %rsi
	movl	%eax, %edi
	callq	___dev_get_by_index
	movq	%r15, %rcx
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	movl	12(%r15), %ecx
	movl	16(%r15), %r13d
	addl	8(%r15), %ecx
LBB0_10:
	movq	8(%r12), %rax
	movq	%rax, 24(%r14)
	leal	(%rbx,%rcx), %eax
	addl	$24, %eax
	movl	%eax, 12(%r14)
	addl	8(%r14), %ebx
	subl	%ebx, %r13d
	addl	$-24, %r13d
	cmpl	$69, %r13d
	movl	$68, %eax
	cmovgel	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LL_MAX_HEADER,4,2              ## @LL_MAX_HEADER
	.comm	_ETH_DATA_LEN,4,2               ## @ETH_DATA_LEN
	.comm	_ARPHRD_ETHER,8,3               ## @ARPHRD_ETHER
	.comm	_IFF_POINTOPOINT,4,2            ## @IFF_POINTOPOINT
	.no_dead_strip	_ip_tunnel_bind_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ip_tunnel_bind_dev
_ip_tunnel_bind_dev:                    ; @ip_tunnel_bind_dev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _LL_MAX_HEADER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LL_MAX_HEADER@GOTPAGEOFF]
Lloh2:
	ldr	w28, [x8]
Lloh3:
	adrp	x8, _ETH_DATA_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_DATA_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
	ldr	w26, [x0]
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_dev_net
	mov	x21, x0
	ldr	w22, [x20, #40]
	ldr	x23, [x20, #32]
	ldr	w24, [x20, #16]
	ldp	w0, w25, [x20, #24]
	bl	_RT_TOS
	mov	x6, x0
	ldr	x7, [x20, #8]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	mov	x4, x25
	mov	x5, x24
	bl	_ip_route_output_tunnel
	mov	x22, x0
	bl	_IS_ERR
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, #0
	b	LBB0_4
LBB0_3:
	ldr	x21, [x22]
	mov	x0, x22
	bl	_ip_rt_put
LBB0_4:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _ARPHRD_ETHER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARPHRD_ETHER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
Lloh9:
	adrp	x8, _IFF_POINTOPOINT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFF_POINTOPOINT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
LBB0_6:
	cbnz	x21, LBB0_9
LBB0_7:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_dev_net
	ldr	x1, [x20, #8]
	bl	___dev_get_by_index
	mov	x21, x0
	cbz	x0, LBB0_10
LBB0_9:
	ldp	w8, w9, [x21, #8]
	add	w28, w9, w8
	ldr	w27, [x21, #16]
LBB0_10:
	add	w8, w26, w28
	ldr	x9, [x20, #8]
	str	x9, [x19, #24]
	add	w8, w8, #24
	str	w8, [x19, #12]
	ldr	w8, [x19, #8]
	add	w8, w26, w8
	sub	w8, w27, w8
	sub	w8, w8, #24
	mov	w9, #68
	cmp	w8, #68
	csel	w0, w8, w9, gt
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LL_MAX_HEADER,4,2              ; @LL_MAX_HEADER
	.comm	_ETH_DATA_LEN,4,2               ; @ETH_DATA_LEN
	.comm	_ARPHRD_ETHER,8,3               ; @ARPHRD_ETHER
	.comm	_IFF_POINTOPOINT,4,2            ; @IFF_POINTOPOINT
	.no_dead_strip	_ip_tunnel_bind_dev
.subsections_via_symbols
