	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function awg_ioctl
_awg_ioctl:                             ## @awg_ioctl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %ebx
	movl	%edi, %r14d
	callq	_if_getsoftc
	movq	%rax, %r15
	movl	4(%rax), %edi
	callq	_device_get_softc
	leal	-128(%rbx), %ecx
	cmpl	$5, %ecx
	ja	LBB0_22
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_13:
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ifmedia_ioctl                  ## TAILCALL
LBB0_11:
	movl	%r14d, %edi
	callq	_if_getdrvflags
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_25
## %bb.12:
	movq	%r15, %rdi
	callq	_AWG_LOCK
	movq	%r15, %rdi
	callq	_awg_setup_rxfilter
	jmp	LBB0_10
LBB0_22:
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%r12, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ether_ioctl                    ## TAILCALL
LBB0_2:
	movq	%r15, %rdi
	callq	_AWG_LOCK
	movl	%r14d, %edi
	callq	_if_getflags
	movl	%eax, %ebx
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_if_getdrvflags
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.3:
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%r14d, %edi
	callq	_if_getflags
	xorl	(%r15), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_9
## %bb.5:
	movq	%r15, %rdi
	callq	_awg_setup_rxfilter
	jmp	LBB0_9
LBB0_14:
	movl	(%r12), %r15d
	movl	%r14d, %edi
	callq	_if_getcapenable
	movl	%eax, %ebx
	xorl	%r15d, %ebx
	movq	_IFCAP_VLAN_MTU@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %ebx
	je	LBB0_16
## %bb.15:
	movl	%r14d, %edi
	callq	_if_togglecapenable
LBB0_16:
	movq	_IFCAP_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%ebx, %esi
	je	LBB0_18
## %bb.17:
	movl	%r14d, %edi
	callq	_if_togglecapenable
LBB0_18:
	movq	_IFCAP_TXCSUM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	testl	%ebx, %esi
	je	LBB0_20
## %bb.19:
	movl	%r14d, %edi
	callq	_if_togglecapenable
LBB0_20:
	movl	%r14d, %edi
	callq	_if_getcapenable
	movq	_CSUM_IP@GOTPCREL(%rip), %rcx
	movq	_CSUM_UDP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_CSUM_TCP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, (%r15)
	je	LBB0_23
## %bb.21:
	movl	%r14d, %edi
	movl	%edx, %esi
	xorl	%edx, %edx
	jmp	LBB0_24
LBB0_7:
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_awg_stop
	jmp	LBB0_9
LBB0_23:
	movl	%r14d, %edi
	xorl	%esi, %esi
LBB0_24:
	callq	_if_sethwassistbits
	jmp	LBB0_25
LBB0_6:
	movq	%r15, %rdi
	callq	_awg_init_locked
LBB0_9:
	movl	%r14d, %edi
	callq	_if_getflags
	movl	%eax, (%r15)
LBB0_10:
	movq	%r15, %rdi
	callq	_AWG_UNLOCK
LBB0_25:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_14
	.long	L0_0_set_13
	.long	L0_0_set_11
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_IFCAP_VLAN_MTU,4,2             ## @IFCAP_VLAN_MTU
	.comm	_IFCAP_RXCSUM,4,2               ## @IFCAP_RXCSUM
	.comm	_IFCAP_TXCSUM,4,2               ## @IFCAP_TXCSUM
	.comm	_CSUM_IP,4,2                    ## @CSUM_IP
	.comm	_CSUM_UDP,4,2                   ## @CSUM_UDP
	.comm	_CSUM_TCP,4,2                   ## @CSUM_TCP
	.comm	_IFCAP_POLLING,4,2              ## @IFCAP_POLLING
	.comm	_awg_poll,4,2                   ## @awg_poll
	.no_dead_strip	_awg_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function awg_ioctl
_awg_ioctl:                             ; @awg_ioctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_if_getsoftc
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_device_get_softc
	sub	w8, w22, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ifmedia_ioctl
LBB0_3:
	mov	x0, x19
	bl	_if_getdrvflags
Lloh2:
	adrp	x8, _IFF_DRV_RUNNING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_25
; %bb.4:
	mov	x0, x20
	bl	_AWG_LOCK
	mov	x0, x20
	bl	_awg_setup_rxfilter
	b	LBB0_24
LBB0_5:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ether_ioctl
LBB0_6:
	mov	x0, x20
	bl	_AWG_LOCK
	mov	x0, x19
	bl	_if_getflags
Lloh5:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w21, w8, w0
	mov	x0, x19
	bl	_if_getdrvflags
Lloh8:
	adrp	x8, _IFF_DRV_RUNNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w8, w8, w0
	cbz	w21, LBB0_18
; %bb.7:
	cbz	w8, LBB0_22
; %bb.8:
	mov	x0, x19
	bl	_if_getflags
	ldr	w8, [x20]
	eor	w8, w8, w0
Lloh11:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _IFF_ALLMULTI@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_23
; %bb.9:
	mov	x0, x20
	bl	_awg_setup_rxfilter
	b	LBB0_23
LBB0_10:
	ldr	w20, [x21]
	mov	x0, x19
	bl	_if_getcapenable
	eor	w20, w0, w20
Lloh17:
	adrp	x8, _IFCAP_VLAN_MTU@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IFCAP_VLAN_MTU@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	tst	w20, w1
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_if_togglecapenable
LBB0_12:
Lloh20:
	adrp	x8, _IFCAP_RXCSUM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IFCAP_RXCSUM@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	tst	w1, w20
	b.eq	LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_if_togglecapenable
LBB0_14:
Lloh23:
	adrp	x21, _IFCAP_TXCSUM@GOTPAGE
Lloh24:
	ldr	x21, [x21, _IFCAP_TXCSUM@GOTPAGEOFF]
	ldr	w1, [x21]
	tst	w1, w20
	b.eq	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_if_togglecapenable
LBB0_16:
	mov	x0, x19
	bl	_if_getcapenable
	ldr	w8, [x21]
Lloh25:
	adrp	x9, _CSUM_IP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CSUM_IP@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, _CSUM_UDP@GOTPAGE
Lloh29:
	ldr	x10, [x10, _CSUM_UDP@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh31:
	adrp	x10, _CSUM_TCP@GOTPAGE
Lloh32:
	ldr	x10, [x10, _CSUM_TCP@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	orr	w2, w9, w10
	tst	w8, w0
	b.eq	LBB0_20
; %bb.17:
	mov	x0, x19
	mov	x1, x2
	mov	w2, #0
	b	LBB0_21
LBB0_18:
	cbz	w8, LBB0_23
; %bb.19:
	mov	x0, x20
	bl	_awg_stop
	b	LBB0_23
LBB0_20:
	mov	x0, x19
	mov	w1, #0
LBB0_21:
	bl	_if_sethwassistbits
	b	LBB0_25
LBB0_22:
	mov	x0, x20
	bl	_awg_init_locked
LBB0_23:
	mov	x0, x19
	bl	_if_getflags
	str	w0, [x20]
LBB0_24:
	mov	x0, x20
	bl	_AWG_UNLOCK
LBB0_25:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_IFCAP_VLAN_MTU,4,2             ; @IFCAP_VLAN_MTU
	.comm	_IFCAP_RXCSUM,4,2               ; @IFCAP_RXCSUM
	.comm	_IFCAP_TXCSUM,4,2               ; @IFCAP_TXCSUM
	.comm	_CSUM_IP,4,2                    ; @CSUM_IP
	.comm	_CSUM_UDP,4,2                   ; @CSUM_UDP
	.comm	_CSUM_TCP,4,2                   ; @CSUM_TCP
	.comm	_IFCAP_POLLING,4,2              ; @IFCAP_POLLING
	.comm	_awg_poll,4,2                   ; @awg_poll
	.no_dead_strip	_awg_ioctl
.subsections_via_symbols
