	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_port_flag
_set_port_flag:                         ## @set_port_flag
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	(%rdx), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	cmpb	$45, (%rbx)
	sete	%r12b
	movq	%r12, %r15
	addq	%rbx, %r15
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcasecmp
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_19
## %bb.17:
	movq	_ETHERSWITCH_PORT_INGRESS@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_26
LBB0_3:
	xorl	%r15d, %r15d
	jmp	LBB0_19
LBB0_5:
	movq	_ETHERSWITCH_PORT_STRIPTAG@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_7:
	movq	_ETHERSWITCH_PORT_ADDTAG@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_9:
	movq	_ETHERSWITCH_PORT_FIRSTLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_11:
	movq	_ETHERSWITCH_PORT_DROPTAGGED@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_13:
	movq	_ETHERSWITCH_PORT_DROPUNTAGGED@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:
	movq	_ETHERSWITCH_PORT_DOUBLE_TAG@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %r15d
LBB0_19:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_bzero
	movl	4(%r14), %eax
	movl	%eax, -36(%rbp)
	movl	(%r14), %edi
	movq	_IOETHERSWITCHGETPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_err
LBB0_21:
	testb	%r12b, %r12b
	je	LBB0_23
## %bb.22:
	notl	%r15d
	andl	%r15d, -40(%rbp)
	jmp	LBB0_24
LBB0_23:
	orl	%r15d, -40(%rbp)
LBB0_24:
	movl	(%r14), %edi
	movq	_IOETHERSWITCHSETPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_ioctl
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.9(%rip), %rsi
	callq	_err
LBB0_26:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"none"

L_.str.1:                               ## @.str.1
	.asciz	"striptag"

	.comm	_ETHERSWITCH_PORT_STRIPTAG,4,2  ## @ETHERSWITCH_PORT_STRIPTAG
L_.str.2:                               ## @.str.2
	.asciz	"addtag"

	.comm	_ETHERSWITCH_PORT_ADDTAG,4,2    ## @ETHERSWITCH_PORT_ADDTAG
L_.str.3:                               ## @.str.3
	.asciz	"firstlock"

	.comm	_ETHERSWITCH_PORT_FIRSTLOCK,4,2 ## @ETHERSWITCH_PORT_FIRSTLOCK
L_.str.4:                               ## @.str.4
	.asciz	"droptagged"

	.comm	_ETHERSWITCH_PORT_DROPTAGGED,4,2 ## @ETHERSWITCH_PORT_DROPTAGGED
L_.str.5:                               ## @.str.5
	.asciz	"dropuntagged"

	.comm	_ETHERSWITCH_PORT_DROPUNTAGGED,4,2 ## @ETHERSWITCH_PORT_DROPUNTAGGED
L_.str.6:                               ## @.str.6
	.asciz	"doubletag"

	.comm	_ETHERSWITCH_PORT_DOUBLE_TAG,4,2 ## @ETHERSWITCH_PORT_DOUBLE_TAG
L_.str.7:                               ## @.str.7
	.asciz	"ingress"

	.comm	_ETHERSWITCH_PORT_INGRESS,4,2   ## @ETHERSWITCH_PORT_INGRESS
	.comm	_IOETHERSWITCHGETPORT,4,2       ## @IOETHERSWITCHGETPORT
	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
L_.str.8:                               ## @.str.8
	.asciz	"ioctl(IOETHERSWITCHGETPORT)"

	.comm	_IOETHERSWITCHSETPORT,4,2       ## @IOETHERSWITCHSETPORT
L_.str.9:                               ## @.str.9
	.asciz	"ioctl(IOETHERSWITCHSETPORT)"

	.no_dead_strip	_set_port_flag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_port_flag
_set_port_flag:                         ; @set_port_flag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cmp	w1, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x20, [x2]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.2:
	mov	x8, x20
	ldrb	w9, [x8], #1
	cmp	w9, #45
	cset	w21, eq
	csel	x20, x20, x8, ne
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_11
; %bb.3:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_12
; %bb.4:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_13
; %bb.5:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_14
; %bb.6:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_15
; %bb.7:
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_16
; %bb.8:
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
Lloh16:
	adrp	x8, _ETHERSWITCH_PORT_INGRESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETHERSWITCH_PORT_INGRESS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w8, wzr, eq
	b	LBB0_18
LBB0_9:
	mov	w0, #-1
	b	LBB0_25
LBB0_10:
	mov	w21, #0
	mov	w20, #0
	b	LBB0_18
LBB0_11:
Lloh19:
	adrp	x8, _ETHERSWITCH_PORT_STRIPTAG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ETHERSWITCH_PORT_STRIPTAG@GOTPAGEOFF]
	b	LBB0_17
LBB0_12:
Lloh21:
	adrp	x8, _ETHERSWITCH_PORT_ADDTAG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETHERSWITCH_PORT_ADDTAG@GOTPAGEOFF]
	b	LBB0_17
LBB0_13:
Lloh23:
	adrp	x8, _ETHERSWITCH_PORT_FIRSTLOCK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETHERSWITCH_PORT_FIRSTLOCK@GOTPAGEOFF]
	b	LBB0_17
LBB0_14:
Lloh25:
	adrp	x8, _ETHERSWITCH_PORT_DROPTAGGED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ETHERSWITCH_PORT_DROPTAGGED@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh27:
	adrp	x8, _ETHERSWITCH_PORT_DROPUNTAGGED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ETHERSWITCH_PORT_DROPUNTAGGED@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh29:
	adrp	x8, _ETHERSWITCH_PORT_DOUBLE_TAG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ETHERSWITCH_PORT_DOUBLE_TAG@GOTPAGEOFF]
LBB0_17:
	ldr	w20, [x8]
LBB0_18:
	add	x0, sp, #8
	mov	w1, #8
	bl	_bzero
	ldp	w0, w8, [x19]
	str	w8, [sp, #12]
Lloh31:
	adrp	x8, _IOETHERSWITCHGETPORT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IOETHERSWITCHGETPORT@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
Lloh34:
	adrp	x22, _EX_OSERR@GOTPAGE
Lloh35:
	ldr	x22, [x22, _EX_OSERR@GOTPAGEOFF]
	cbz	x0, LBB0_20
; %bb.19:
	ldr	w0, [x22]
Lloh36:
	adrp	x1, l_.str.8@PAGE
Lloh37:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_err
LBB0_20:
	cbz	w21, LBB0_22
; %bb.21:
	ldr	w8, [sp, #8]
	bic	w8, w8, w20
	b	LBB0_23
LBB0_22:
	ldr	w8, [sp, #8]
	orr	w8, w8, w20
LBB0_23:
	str	w8, [sp, #8]
	ldr	w0, [x19]
Lloh38:
	adrp	x8, _IOETHERSWITCHSETPORT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IOETHERSWITCHSETPORT@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_25
; %bb.24:
	ldr	w0, [x22]
Lloh41:
	adrp	x1, l_.str.9@PAGE
Lloh42:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_err
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"none"

l_.str.1:                               ; @.str.1
	.asciz	"striptag"

	.comm	_ETHERSWITCH_PORT_STRIPTAG,4,2  ; @ETHERSWITCH_PORT_STRIPTAG
l_.str.2:                               ; @.str.2
	.asciz	"addtag"

	.comm	_ETHERSWITCH_PORT_ADDTAG,4,2    ; @ETHERSWITCH_PORT_ADDTAG
l_.str.3:                               ; @.str.3
	.asciz	"firstlock"

	.comm	_ETHERSWITCH_PORT_FIRSTLOCK,4,2 ; @ETHERSWITCH_PORT_FIRSTLOCK
l_.str.4:                               ; @.str.4
	.asciz	"droptagged"

	.comm	_ETHERSWITCH_PORT_DROPTAGGED,4,2 ; @ETHERSWITCH_PORT_DROPTAGGED
l_.str.5:                               ; @.str.5
	.asciz	"dropuntagged"

	.comm	_ETHERSWITCH_PORT_DROPUNTAGGED,4,2 ; @ETHERSWITCH_PORT_DROPUNTAGGED
l_.str.6:                               ; @.str.6
	.asciz	"doubletag"

	.comm	_ETHERSWITCH_PORT_DOUBLE_TAG,4,2 ; @ETHERSWITCH_PORT_DOUBLE_TAG
l_.str.7:                               ; @.str.7
	.asciz	"ingress"

	.comm	_ETHERSWITCH_PORT_INGRESS,4,2   ; @ETHERSWITCH_PORT_INGRESS
	.comm	_IOETHERSWITCHGETPORT,4,2       ; @IOETHERSWITCHGETPORT
	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
l_.str.8:                               ; @.str.8
	.asciz	"ioctl(IOETHERSWITCHGETPORT)"

	.comm	_IOETHERSWITCHSETPORT,4,2       ; @IOETHERSWITCHSETPORT
l_.str.9:                               ; @.str.9
	.asciz	"ioctl(IOETHERSWITCHSETPORT)"

	.no_dead_strip	_set_port_flag
.subsections_via_symbols
