	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_vlangroup
_print_vlangroup:                       ## @print_vlangroup
	.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	%esi, %r14d
	movq	%rdi, %r15
	movl	%esi, -56(%rbp)
	movl	16(%rdi), %edi
	movq	_IOETHERSWITCHGETVLANGROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_2:
	movl	-52(%rbp), %eax
	movq	_ETHERSWITCH_VID_VALID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.3:
	movq	_ETHERSWITCH_VID_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, -52(%rbp)
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	8(%r15), %rax
	movq	_ETHERSWITCH_VLAN_PORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	-52(%rbp), %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdi
	cmoveq	%rax, %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-48(%rbp), %r14d
	testl	%r14d, %r14d
	je	LBB0_13
## %bb.4:
	cmpl	$0, (%r15)
	jle	LBB0_14
## %bb.5:
	movl	$1, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r12), %ebx
	movl	%ebx, %edi
	callq	_ETHERSWITCH_PORTMASK
	testl	%r14d, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$44, %edi
	callq	_putchar
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movl	-44(%rbp), %r14d
	movl	%ebx, %edi
	callq	_ETHERSWITCH_PORTMASK
	movl	$1, %r13d
	testl	%r14d, %eax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	$116, %edi
	callq	_putchar
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	(%r15), %r12d
	jge	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-48(%rbp), %r14d
	incl	%r12d
	jmp	LBB0_6
LBB0_13:
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_14:
	movl	$10, %edi
	callq	_putchar
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOETHERSWITCHGETVLANGROUP,4,2  ## @IOETHERSWITCHGETVLANGROUP
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl(IOETHERSWITCHGETVLANGROUP)"

	.comm	_ETHERSWITCH_VID_VALID,4,2      ## @ETHERSWITCH_VID_VALID
	.comm	_ETHERSWITCH_VID_MASK,4,2       ## @ETHERSWITCH_VID_MASK
L_.str.1:                               ## @.str.1
	.asciz	"vlangroup%d:\n"

	.comm	_ETHERSWITCH_VLAN_PORT,8,3      ## @ETHERSWITCH_VLAN_PORT
L_.str.2:                               ## @.str.2
	.asciz	"\tport: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"\tvlan: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"\tmembers "

L_.str.6:                               ## @.str.6
	.asciz	"%d"

L_.str.8:                               ## @.str.8
	.asciz	"none"

	.no_dead_strip	_print_vlangroup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_vlangroup
_print_vlangroup:                       ; @print_vlangroup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
	str	w1, [sp, #16]
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _IOETHERSWITCHGETVLANGROUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOETHERSWITCHGETVLANGROUP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_ioctl
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_2:
	ldr	w8, [sp, #20]
Lloh8:
	adrp	x9, _ETHERSWITCH_VID_VALID@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ETHERSWITCH_VID_VALID@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.3:
Lloh11:
	adrp	x9, _ETHERSWITCH_VID_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ETHERSWITCH_VID_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w8, w9, w8
	str	w8, [sp, #20]
	str	x20, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _ETHERSWITCH_VLAN_PORT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ETHERSWITCH_VLAN_PORT@GOTPAGEOFF]
Lloh18:
	adrp	x10, l_.str.3@PAGE
Lloh19:
	add	x10, x10, l_.str.3@PAGEOFF
Lloh20:
	ldr	x9, [x9]
Lloh21:
	adrp	x11, l_.str.2@PAGE
Lloh22:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	x8, x9
	csel	x0, x11, x10, eq
	ldr	w8, [sp, #20]
	str	x8, [sp]
	bl	_printf
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	w24, [sp, #24]
	cbz	w24, LBB0_14
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.5:
	mov	w23, #0
	mov	w22, #1
Lloh25:
	adrp	x20, l_.str.6@PAGE
Lloh26:
	add	x20, x20, l_.str.6@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w21, w22, #1
	mov	x0, x21
	bl	_ETHERSWITCH_PORTMASK
	tst	w0, w24
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w23, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #44
	bl	_putchar
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x21, [sp]
	mov	x0, x20
	bl	_printf
	ldr	w23, [sp, #28]
	mov	x0, x21
	bl	_ETHERSWITCH_PORTMASK
	tst	w0, w23
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #116
	bl	_putchar
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w23, #1
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x19]
	cmp	w22, w8
	b.ge	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w24, [sp, #24]
	add	w22, w22, #1
	b	LBB0_6
LBB0_14:
Lloh27:
	adrp	x0, l_.str.8@PAGE
Lloh28:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
LBB0_15:
	mov	w0, #10
	bl	_putchar
LBB0_16:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_IOETHERSWITCHGETVLANGROUP,4,2  ; @IOETHERSWITCHGETVLANGROUP
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl(IOETHERSWITCHGETVLANGROUP)"

	.comm	_ETHERSWITCH_VID_VALID,4,2      ; @ETHERSWITCH_VID_VALID
	.comm	_ETHERSWITCH_VID_MASK,4,2       ; @ETHERSWITCH_VID_MASK
l_.str.1:                               ; @.str.1
	.asciz	"vlangroup%d:\n"

	.comm	_ETHERSWITCH_VLAN_PORT,8,3      ; @ETHERSWITCH_VLAN_PORT
l_.str.2:                               ; @.str.2
	.asciz	"\tport: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"\tvlan: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"\tmembers "

l_.str.6:                               ; @.str.6
	.asciz	"%d"

l_.str.8:                               ; @.str.8
	.asciz	"none"

	.no_dead_strip	_print_vlangroup
.subsections_via_symbols
