	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlan_create
_vlan_create:                           ## @vlan_create
	.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
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	_params@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_NOTAG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	cmpb	$0, (%rax)
	je	LBB0_6
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	movq	8(%r15), %rax
	cmpb	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_5:
	movq	%r15, (%rbx)
LBB0_6:
	movq	_SIOCIFCREATE2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_err                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_params,16,3                    ## @params
	.comm	_NOTAG,8,3                      ## @NOTAG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"must specify a tag for vlan create"

L_.str.1:                               ## @.str.1
	.asciz	"must specify a parent device for vlan create"

	.comm	_SIOCIFCREATE2,4,2              ## @SIOCIFCREATE2
L_.str.2:                               ## @.str.2
	.asciz	"SIOCIFCREATE2"

	.no_dead_strip	_vlan_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlan_create
_vlan_create:                           ; @vlan_create
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _params@GOTPAGE
Lloh1:
	ldr	x21, [x21, _params@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _NOTAG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NOTAG@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x21, #8]
	ldrb	w8, [x8]
	cbz	w8, LBB0_6
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_3:
	ldr	x8, [x21, #8]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_5:
	str	x21, [x19]
LBB0_6:
Lloh9:
	adrp	x8, _SIOCIFCREATE2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SIOCIFCREATE2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_ioctl
	tbnz	x0, #63, LBB0_8
; %bb.7:
	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
LBB0_8:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	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	_err
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_params,16,3                    ; @params
	.comm	_NOTAG,8,3                      ; @NOTAG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"must specify a tag for vlan create"

l_.str.1:                               ; @.str.1
	.asciz	"must specify a parent device for vlan create"

	.comm	_SIOCIFCREATE2,4,2              ; @SIOCIFCREATE2
l_.str.2:                               ; @.str.2
	.asciz	"SIOCIFCREATE2"

	.no_dead_strip	_vlan_create
.subsections_via_symbols
