	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function print_port
_print_port:                            ## @print_port
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_IFMEDIAREQ_NULISTENTRIES@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	leaq	-128(%rbp), %r15
	movq	%r15, %rdi
	movl	$64, %esi
	callq	_bzero
	movl	%ebx, -128(%rbp)
	movq	%r13, -104(%rbp)
	movl	(%r14), %eax
	movl	%eax, -96(%rbp)
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	16(%r12), %edi
	movq	_IOETHERSWITCHGETPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %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:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	_ETHERSWITCH_VLAN_DOT1Q@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	-124(%rbp), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_4:
	movl	-72(%rbp), %esi
	movq	_ETHERSWITCH_PORT_FLAGS_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rdi
	callq	_printb
	movl	$10, %edi
	callq	_putchar
	cmpl	$0, -120(%rbp)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_9
## %bb.5:
	movq	%r13, -136(%rbp)                ## 8-byte Spill
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-120(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:
	movq	_ledstyles@GOTPCREL(%rip), %r12
	leaq	L_.str.7(%rip), %r14
	leaq	L_.str.8(%rip), %r13
	leaq	L_.str.6(%rip), %r15
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rcx), %rbx
	movq	(%r12), %rdx
	movq	-112(%rbp), %rsi
	movq	(%rsi,%rcx,8), %rsi
	movq	(%rdx,%rsi,8), %rdx
	decl	%eax
	cmpq	%rax, %rcx
	movq	%r13, %rcx
	cmoveq	%r14, %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_printf
	movslq	-120(%rbp), %rax
	movq	%rbx, %rcx
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movl	$10, %edi
	callq	_putchar
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	-136(%rbp), %r13                ## 8-byte Reload
	movq	_IFMEDIAREQ_NULISTENTRIES@GOTPCREL(%rip), %r14
LBB0_9:
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-92(%rbp), %edi
	movl	$1, %esi
	callq	_print_media_word
	movslq	-92(%rbp), %rax
	cmpq	%rax, -88(%rbp)
	je	LBB0_11
## %bb.10:
	movl	$32, %edi
	callq	_putchar
	movl	$40, %edi
	callq	_putchar
	movl	-88(%rbp), %edi
	xorl	%esi, %esi
	callq	_print_media_word
	movl	$41, %edi
	callq	_putchar
LBB0_11:
	movl	$10, %edi
	callq	_putchar
	movq	_IFM_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-80(%rbp), %eax
	leaq	L_.str.12(%rip), %rax
	leaq	L_.str.11(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.12:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	-96(%rbp), %eax
	movl	(%r14), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_14
## %bb.13:
	movl	%ecx, -96(%rbp)
	movl	%ecx, %eax
LBB0_14:
	testl	%eax, %eax
	jle	LBB0_17
## %bb.15:
	leaq	L_.str.14(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	(%r13,%rbx,4), %edi
	xorl	%esi, %esi
	callq	_print_media_word
	movl	$10, %edi
	callq	_putchar
	incq	%rbx
	movslq	-96(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_16
LBB0_17:
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IFMEDIAREQ_NULISTENTRIES,4,2   ## @IFMEDIAREQ_NULISTENTRIES
	.comm	_IOETHERSWITCHGETPORT,4,2       ## @IOETHERSWITCHGETPORT
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl(IOETHERSWITCHGETPORT)"

L_.str.1:                               ## @.str.1
	.asciz	"port%d:\n"

	.comm	_ETHERSWITCH_VLAN_DOT1Q,8,3     ## @ETHERSWITCH_VLAN_DOT1Q
L_.str.2:                               ## @.str.2
	.asciz	"\tpvid: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"\tflags"

	.comm	_ETHERSWITCH_PORT_FLAGS_BITS,4,2 ## @ETHERSWITCH_PORT_FLAGS_BITS
L_.str.5:                               ## @.str.5
	.asciz	"\tled: "

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

	.comm	_ledstyles,8,3                  ## @ledstyles
L_.str.7:                               ## @.str.7
	.space	1

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

L_.str.9:                               ## @.str.9
	.asciz	"\tmedia: "

L_.str.10:                              ## @.str.10
	.asciz	"\tstatus: %s\n"

	.comm	_IFM_ACTIVE,4,2                 ## @IFM_ACTIVE
L_.str.11:                              ## @.str.11
	.asciz	"active"

L_.str.12:                              ## @.str.12
	.asciz	"no carrier"

L_.str.14:                              ## @.str.14
	.asciz	"\t\tmedia "

L_str:                                  ## @str
	.asciz	"\tsupported media:"

	.no_dead_strip	_print_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function print_port
_print_port:                            ; @print_port
	.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
	sub	sp, sp, #80
	mov	x20, x1
	mov	x19, x0
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x23, _IFMEDIAREQ_NULISTENTRIES@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IFMEDIAREQ_NULISTENTRIES@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	sub	x0, x29, #152
	mov	w1, #64
	bl	_bzero
	stur	w20, [x29, #-152]
	stur	x22, [x29, #-128]
	ldr	w8, [x23]
	stur	w8, [x29, #-120]
	ldr	w0, [x19, #16]
Lloh7:
	adrp	x8, _IOETHERSWITCHGETPORT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IOETHERSWITCHGETPORT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	sub	x2, x29, #152
	bl	_ioctl
	cbz	x0, LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_err
LBB0_2:
	str	x20, [sp, #-16]!
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _ETHERSWITCH_VLAN_DOT1Q@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ETHERSWITCH_VLAN_DOT1Q@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldur	w8, [x29, #-148]
	str	x8, [sp, #-16]!
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	add	sp, sp, #16
LBB0_4:
	ldur	w1, [x29, #-96]
Lloh22:
	adrp	x8, _ETHERSWITCH_PORT_FLAGS_BITS@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ETHERSWITCH_PORT_FLAGS_BITS@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printb
	mov	w0, #10
	bl	_putchar
	ldur	w8, [x29, #-144]
	cbz	w8, LBB0_9
; %bb.5:
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	ldur	w8, [x29, #-144]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x9, #0
Lloh29:
	adrp	x24, _ledstyles@GOTPAGE
Lloh30:
	ldr	x24, [x24, _ledstyles@GOTPAGEOFF]
Lloh31:
	adrp	x25, l_.str.8@PAGE
Lloh32:
	add	x25, x25, l_.str.8@PAGEOFF
Lloh33:
	adrp	x26, l_.str.7@PAGE
Lloh34:
	add	x26, x26, l_.str.7@PAGEOFF
Lloh35:
	adrp	x20, l_.str.6@PAGE
Lloh36:
	add	x20, x20, l_.str.6@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x27, x9, #1
	ldur	x10, [x29, #-136]
	ldr	x10, [x10, x9, lsl #3]
	ldr	x11, [x24]
	ldr	x10, [x11, x10, lsl #3]
	sub	w8, w8, #1
	cmp	x9, x8
	csel	x8, x26, x25, eq
	sub	sp, sp, #32
	stp	x10, x8, [sp, #8]
	str	x27, [sp]
	mov	x0, x20
	bl	_printf
	add	sp, sp, #32
	ldursw	x8, [x29, #-144]
	mov	x9, x27
	cmp	x27, x8
	b.lt	LBB0_7
LBB0_8:
	mov	w0, #10
	bl	_putchar
LBB0_9:
Lloh37:
	adrp	x0, l_.str.9@PAGE
Lloh38:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	ldur	w0, [x29, #-116]
	mov	w1, #1
	bl	_print_media_word
	ldur	x8, [x29, #-112]
	ldursw	x9, [x29, #-116]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:
	mov	w0, #32
	bl	_putchar
	mov	w0, #40
	bl	_putchar
	ldur	w0, [x29, #-112]
	mov	w1, #0
	bl	_print_media_word
	mov	w0, #41
	bl	_putchar
LBB0_11:
	mov	w0, #10
	bl	_putchar
	ldur	w8, [x29, #-104]
Lloh39:
	adrp	x9, _IFM_ACTIVE@GOTPAGE
Lloh40:
	ldr	x9, [x9, _IFM_ACTIVE@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
Lloh42:
	adrp	x10, l_.str.11@PAGE
Lloh43:
	add	x10, x10, l_.str.11@PAGEOFF
Lloh44:
	adrp	x11, l_.str.12@PAGE
Lloh45:
	add	x11, x11, l_.str.12@PAGEOFF
	tst	w9, w8
	csel	x8, x11, x10, eq
	str	x8, [sp, #-16]!
Lloh46:
	adrp	x0, l_.str.10@PAGE
Lloh47:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
	add	sp, sp, #16
	ldr	x8, [x19]
	cbz	x8, LBB0_17
; %bb.12:
Lloh48:
	adrp	x0, l_str@PAGE
Lloh49:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldur	w8, [x29, #-120]
	ldr	w9, [x23]
	cmp	w8, w9
	b.le	LBB0_14
; %bb.13:
	stur	w9, [x29, #-120]
	mov	x8, x9
LBB0_14:
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x20, #0
Lloh50:
	adrp	x19, l_.str.14@PAGE
Lloh51:
	add	x19, x19, l_.str.14@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_printf
	ldr	w0, [x22, x20, lsl #2]
	mov	w1, #0
	bl	_print_media_word
	mov	w0, #10
	bl	_putchar
	add	x20, x20, #1
	ldursw	x8, [x29, #-120]
	cmp	x20, x8
	b.lt	LBB0_16
LBB0_17:
	mov	sp, x21
	ldur	x8, [x29, #-88]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	sub	sp, x29, #80
	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:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_IFMEDIAREQ_NULISTENTRIES,4,2   ; @IFMEDIAREQ_NULISTENTRIES
	.comm	_IOETHERSWITCHGETPORT,4,2       ; @IOETHERSWITCHGETPORT
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl(IOETHERSWITCHGETPORT)"

l_.str.1:                               ; @.str.1
	.asciz	"port%d:\n"

	.comm	_ETHERSWITCH_VLAN_DOT1Q,8,3     ; @ETHERSWITCH_VLAN_DOT1Q
l_.str.2:                               ; @.str.2
	.asciz	"\tpvid: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"\tflags"

	.comm	_ETHERSWITCH_PORT_FLAGS_BITS,4,2 ; @ETHERSWITCH_PORT_FLAGS_BITS
l_.str.5:                               ; @.str.5
	.asciz	"\tled: "

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

	.comm	_ledstyles,8,3                  ; @ledstyles
l_.str.7:                               ; @.str.7
	.space	1

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

l_.str.9:                               ; @.str.9
	.asciz	"\tmedia: "

l_.str.10:                              ; @.str.10
	.asciz	"\tstatus: %s\n"

	.comm	_IFM_ACTIVE,4,2                 ; @IFM_ACTIVE
l_.str.11:                              ; @.str.11
	.asciz	"active"

l_.str.12:                              ; @.str.12
	.asciz	"no carrier"

l_.str.14:                              ; @.str.14
	.asciz	"\t\tmedia "

l_str:                                  ; @str
	.asciz	"\tsupported media:"

	.no_dead_strip	_print_port
.subsections_via_symbols
