	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lagg_port_ioctl
_lagg_port_ioctl:                       ## @lagg_port_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
	movq	(%rdi), %rax
	movq	_IFT_IEEE8023ADLAG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%rdx, %r15
	movq	8(%rax), %r14
	testq	%r14, %r14
	je	LBB0_16
## %bb.3:
	cmpl	$128, %esi
	je	LBB0_17
## %bb.4:
	cmpl	$129, %esi
	je	LBB0_13
## %bb.5:
	cmpl	$130, %esi
	jne	LBB0_16
## %bb.6:
	movq	(%r15), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_17
## %bb.7:
	callq	_ifunit
	cmpq	%rbx, %rax
	jne	LBB0_17
## %bb.8:
	xorl	%eax, %eax
	callq	_LAGG_RLOCK
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	cmpq	%r14, 8(%rdi)
	je	LBB0_12
LBB0_10:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_11
LBB0_16:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.19:
	movq	%rbx, %rdi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_13:
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.14:
	movq	%rbx, %rdi
	movl	$129, %esi
	movq	%r15, %rdx
	callq	*%rcx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	movq	%r14, %rdi
	callq	_LAGG_XLOCK
	movq	%r14, %rdi
	callq	_lagg_capabilities
	movq	%r14, %rdi
	callq	_LAGG_XUNLOCK
	movl	(%r14), %edi
	callq	_VLAN_CAPABILITIES
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, %rsi
	callq	_lagg_port2req
	xorl	%ebx, %ebx
LBB0_11:
	xorl	%eax, %eax
	callq	_LAGG_RUNLOCK
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_IFT_IEEE8023ADLAG,8,3          ## @IFT_IEEE8023ADLAG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_lagg_port_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lagg_port_ioctl
_lagg_port_ioctl:                       ; @lagg_port_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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IFT_IEEE8023ADLAG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IFT_IEEE8023ADLAG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_16
; %bb.2:
	mov	x19, x2
	ldr	x20, [x8, #8]
	cbz	x20, LBB0_11
; %bb.3:
	cmp	w1, #128
	b.eq	LBB0_16
; %bb.4:
	cmp	w1, #129
	b.eq	LBB0_13
; %bb.5:
	cmp	w1, #130
	b.ne	LBB0_11
; %bb.6:
	ldr	x0, [x19]
	ldrb	w8, [x0]
	cbz	w8, LBB0_16
; %bb.7:
	bl	_ifunit
	cmp	x0, x21
	b.ne	LBB0_16
; %bb.8:
	bl	_LAGG_RLOCK
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x0, #8]
	cmp	x8, x20
	b.eq	LBB0_18
LBB0_10:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	bl	_LAGG_RUNLOCK
	b	LBB0_17
LBB0_11:
	ldr	x3, [x8]
	cbz	x3, LBB0_16
; %bb.12:
	mov	x0, x21
	mov	x2, x19
	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
	br	x3
LBB0_13:
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.14:
	mov	x0, x21
	mov	w1, #129
	mov	x2, x19
	blr	x8
	mov	x19, x0
	cbnz	w0, LBB0_17
; %bb.15:
	mov	x0, x20
	bl	_LAGG_XLOCK
	mov	x0, x20
	bl	_lagg_capabilities
	mov	x0, x20
	bl	_LAGG_XUNLOCK
	ldr	w0, [x20]
	bl	_VLAN_CAPABILITIES
	b	LBB0_17
LBB0_16:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
LBB0_17:
	mov	x0, x19
	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_18:
	mov	x1, x19
	bl	_lagg_port2req
	bl	_LAGG_RUNLOCK
	mov	w19, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IFT_IEEE8023ADLAG,8,3          ; @IFT_IEEE8023ADLAG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_lagg_port_ioctl
.subsections_via_symbols
