	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_gateway
_gen_gateway:                           ## @gen_gateway
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_bpf_error
LBB0_2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.3:
	movl	$-132, %eax
	addl	(%r15), %eax
	cmpl	$11, %eax
	ja	LBB0_9
## %bb.4:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	_Q_OR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gen_wlanhostop
LBB0_24:
	movq	%rax, %r14
	testq	%rbx, %rbx
	jne	LBB0_13
	jmp	LBB0_25
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_bpf_error
                                        ## implicit-def: $r12
	jmp	LBB0_26
LBB0_7:
	movq	%r15, %rdi
	callq	_gen_prevlinkhdr_check
	movq	%rax, %r13
	movq	_Q_OR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gen_ehostop
	movq	%rax, %r14
	testq	%r13, %r13
	je	LBB0_12
## %bb.8:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_gen_and
	testq	%rbx, %rbx
	jne	LBB0_13
	jmp	LBB0_25
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_bpf_error
                                        ## implicit-def: $r14
	testq	%rbx, %rbx
	jne	LBB0_13
	jmp	LBB0_25
LBB0_10:
	movq	_Q_OR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gen_ipfchostop
	jmp	LBB0_24
LBB0_11:
	movq	_Q_OR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gen_thostop
	movq	%rax, %r14
LBB0_12:
	testq	%rbx, %rbx
	je	LBB0_25
LBB0_13:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	_AF_INET@GOTPCREL(%rip), %r14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r13, %r12
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%rax), %edi
	cmpl	(%r14), %edi
	jne	LBB0_15
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	callq	_ntohl
	movq	_Q_OR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_Q_HOST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	$-1, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_gen_host
	movq	%rax, %r13
	testq	%r12, %r12
	je	LBB0_14
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_gen_or
	jmp	LBB0_14
LBB0_20:
	testq	%r12, %r12
	je	LBB0_25
## %bb.21:
	movq	%r12, %rdi
	callq	_gen_not
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_gen_and
	jmp	LBB0_26
LBB0_25:
	xorl	%r12d, %r12d
LBB0_26:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_Q_OR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_gen_fhostop
	jmp	LBB0_24
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_10
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_11
	.long	L0_0_set_23
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"direction applied to 'gateway'"

	.comm	_Q_OR,4,2                       ## @Q_OR
L_.str.1:                               ## @.str.1
	.asciz	"'gateway' supported only on ethernet/FDDI/token ring/802.11/ATM LANE/Fibre Channel"

	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_Q_HOST,4,2                     ## @Q_HOST
L_.str.2:                               ## @.str.2
	.asciz	"illegal modifier of 'gateway'"

	.no_dead_strip	_gen_gateway
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_gateway
_gen_gateway:                           ; @gen_gateway
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	cbz	w4, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_bpf_error
LBB0_2:
	and	w8, w20, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.3:
	ldr	w8, [x19]
	sub	w8, w8, #132
	cmp	w8, #11
	b.hi	LBB0_21
; %bb.4:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:
Lloh4:
	adrp	x8, _Q_OR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Q_OR@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_gen_wlanhostop
LBB0_6:
	mov	x22, x0
LBB0_7:
	mov	x23, #0
	cbz	x21, LBB0_18
; %bb.8:
Lloh7:
	adrp	x25, _AF_INET@GOTPAGE
Lloh8:
	ldr	x25, [x25, _AF_INET@GOTPAGEOFF]
Lloh9:
	adrp	x26, _Q_OR@GOTPAGE
Lloh10:
	ldr	x26, [x26, _Q_OR@GOTPAGEOFF]
Lloh11:
	adrp	x27, _Q_HOST@GOTPAGE
Lloh12:
	ldr	x27, [x27, _Q_HOST@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x23, x24
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	cbz	x8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w0, [x8]
	ldr	w8, [x25]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	bl	_ntohl
	mov	x1, x0
	ldr	w4, [x26]
	ldr	w5, [x27]
	mov	x0, x19
	mov	w2, #-1
	mov	x3, x20
	bl	_gen_host
	mov	x24, x0
	cbz	x23, LBB0_9
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_gen_or
	b	LBB0_9
LBB0_15:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_bpf_error
                                        ; implicit-def: $x23
	b	LBB0_18
LBB0_16:
	cbz	x23, LBB0_18
; %bb.17:
	mov	x0, x23
	bl	_gen_not
	mov	x0, x22
	mov	x1, x23
	bl	_gen_and
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	mov	x0, x19
	bl	_gen_prevlinkhdr_check
	mov	x23, x0
Lloh15:
	adrp	x8, _Q_OR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Q_OR@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_gen_ehostop
	mov	x22, x0
	cbz	x23, LBB0_7
; %bb.20:
	mov	x0, x23
	mov	x1, x22
	bl	_gen_and
	b	LBB0_7
LBB0_21:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_bpf_error
                                        ; implicit-def: $x22
	b	LBB0_7
LBB0_22:
Lloh20:
	adrp	x8, _Q_OR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _Q_OR@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_gen_ipfchostop
	b	LBB0_6
LBB0_23:
Lloh23:
	adrp	x8, _Q_OR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _Q_OR@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_gen_thostop
	b	LBB0_6
LBB0_24:
Lloh26:
	adrp	x8, _Q_OR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _Q_OR@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_gen_fhostop
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_19-LBB0_5)>>2
	.byte	(LBB0_19-LBB0_5)>>2
	.byte	(LBB0_22-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_23-LBB0_5)>>2
	.byte	(LBB0_24-LBB0_5)>>2
	.byte	(LBB0_19-LBB0_5)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"direction applied to 'gateway'"

	.comm	_Q_OR,4,2                       ; @Q_OR
l_.str.1:                               ; @.str.1
	.asciz	"'gateway' supported only on ethernet/FDDI/token ring/802.11/ATM LANE/Fibre Channel"

	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_Q_HOST,4,2                     ; @Q_HOST
l_.str.2:                               ; @.str.2
	.asciz	"illegal modifier of 'gateway'"

	.no_dead_strip	_gen_gateway
.subsections_via_symbols
