	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glc_ioctl
_glc_ioctl:                             ## @glc_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ecx
	movq	%rdi, %r14
	leal	-128(%rcx), %eax
	cmpl	$4, %eax
	ja	LBB0_11
## %bb.1:
	movq	8(%r14), %rbx
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rax,4), %rax
	addq	%rsi, %rax
	jmpq	*%rax
LBB0_10:
	addq	$4, %rbx
	movq	%r14, %rdi
	movq	%rdx, %rsi
	movq	%rbx, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ifmedia_ioctl                  ## TAILCALL
LBB0_12:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	%rbx, %rdi
	callq	_glc_set_multicast
	movq	%r14, %rdi
	jmp	LBB0_13
LBB0_11:
	movq	%r14, %rdi
	movl	%ecx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ether_ioctl                    ## TAILCALL
LBB0_2:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mtx_lock
	movl	(%r14), %eax
	movq	_IFF_UP@GOTPCREL(%rip), %rdx
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%r14), %ecx
	testl	%eax, (%rdx)
	je	LBB0_7
## %bb.3:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.4:
	xorl	(%rbx), %eax
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_glc_set_multicast
	jmp	LBB0_9
LBB0_7:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_glc_stop
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_glc_init_locked
LBB0_9:
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movq	%r15, %rdi
LBB0_13:
	callq	_mtx_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.no_dead_strip	_glc_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glc_ioctl
_glc_ioctl:                             ; @glc_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	x3, x1
	mov	x20, x0
	sub	w8, w1, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.1:
	ldr	x19, [x20, #8]
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:
	add	x8, x19, #4
	mov	x0, x20
	mov	x1, x2
	mov	x2, x8
	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:
	add	x20, x19, #8
	mov	x0, x20
	bl	_mtx_lock
	mov	x0, x19
	bl	_glc_set_multicast
	mov	x0, x20
	b	LBB0_13
LBB0_4:
	mov	x0, x20
	mov	x1, x3
	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_5:
	add	x21, x19, #8
	mov	x0, x21
	bl	_mtx_lock
Lloh2:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x8]
	ldp	w8, w9, [x20]
Lloh5:
	adrp	x11, _IFF_DRV_RUNNING@GOTPAGE
Lloh6:
	ldr	x11, [x11, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	and	w9, w11, w9
	tst	w10, w8
	b.eq	LBB0_9
; %bb.6:
	cbz	w9, LBB0_11
; %bb.7:
	ldr	w9, [x19]
	eor	w8, w9, w8
Lloh8:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _IFF_PROMISC@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IFF_PROMISC@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_glc_set_multicast
	b	LBB0_12
LBB0_9:
	cbz	w9, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_glc_stop
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_glc_init_locked
LBB0_12:
	ldr	w8, [x20]
	str	w8, [x19]
	mov	x0, x21
LBB0_13:
	bl	_mtx_unlock
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-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_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.no_dead_strip	_glc_ioctl
.subsections_via_symbols
