	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fv_ioctl
_fv_ioctl:                              ## @fv_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
	movl	%esi, %ecx
	movq	%rdi, %rbx
	leal	-128(%rcx), %eax
	cmpl	$5, %eax
	ja	LBB0_16
## %bb.1:
	movl	$52, %esi
	btl	%eax, %esi
	jb	LBB0_14
## %bb.2:
	movq	24(%rbx), %r14
	movl	$9, %esi
	btl	%eax, %esi
	jae	LBB0_3
## %bb.15:
	addq	$4, %r14
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ifmedia_ioctl                  ## TAILCALL
LBB0_16:
	movq	%rbx, %rdi
	movl	%ecx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ether_ioctl                    ## TAILCALL
LBB0_3:
	movq	%r14, %rdi
	callq	_FV_LOCK
	movl	(%rbx), %eax
	movq	_IFF_UP@GOTPCREL(%rip), %rdx
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rbx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_11
## %bb.4:
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.5:
	xorl	(%r14), %eax
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_CSR_OPMODE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_CSR_READ_4
	movq	_OPMODE_PM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r15), %esi
	movq	_OPMODE_PR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_CSR_WRITE_4
	movl	(%r14), %eax
	xorl	(%rbx), %eax
LBB0_7:
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.8:
	movq	_CSR_OPMODE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_CSR_READ_4
	movl	(%r15), %esi
	movq	_OPMODE_PM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_CSR_WRITE_4
	jmp	LBB0_13
LBB0_11:
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_fv_stop
	jmp	LBB0_13
LBB0_9:
	cmpl	$0, 12(%r14)
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_fv_init_locked
LBB0_13:
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_FV_UNLOCK
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_CSR_OPMODE,4,2                 ## @CSR_OPMODE
	.comm	_OPMODE_PM,4,2                  ## @OPMODE_PM
	.comm	_OPMODE_PR,4,2                  ## @OPMODE_PR
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_FV_CSUM_FEATURES,4,2           ## @FV_CSUM_FEATURES
	.comm	_IFCAP_HWCSUM,4,2               ## @IFCAP_HWCSUM
	.comm	_IFCAP_VLAN_HWTAGGING,4,2       ## @IFCAP_VLAN_HWTAGGING
	.comm	_mask,4,2                       ## @mask
	.no_dead_strip	_fv_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fv_ioctl
_fv_ioctl:                              ; @fv_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
	mov	x3, x1
	mov	x19, x0
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #52
	tst	w8, w9
	b.ne	LBB0_16
; %bb.2:
	ldr	x20, [x19, #24]
	mov	w9, #9
	tst	w8, w9
	b.eq	LBB0_5
; %bb.3:
	add	x8, x20, #4
	mov	x0, x19
	mov	x1, x2
	mov	x2, x8
	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	_ifmedia_ioctl
LBB0_4:
	mov	x0, x19
	mov	x1, x3
	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	_ether_ioctl
LBB0_5:
	mov	x0, x20
	bl	_FV_LOCK
Lloh0:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ldp	w8, w9, [x19]
Lloh3:
	adrp	x11, _IFF_DRV_RUNNING@GOTPAGE
Lloh4:
	ldr	x11, [x11, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	and	w9, w11, w9
	tst	w10, w8
	b.eq	LBB0_11
; %bb.6:
	cbz	w9, LBB0_13
; %bb.7:
	ldr	w9, [x20]
	eor	w8, w9, w8
Lloh6:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x21, _CSR_OPMODE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _CSR_OPMODE@GOTPAGEOFF]
Lloh11:
	adrp	x22, _OPMODE_PM@GOTPAGE
Lloh12:
	ldr	x22, [x22, _OPMODE_PM@GOTPAGEOFF]
	tst	w8, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_CSR_READ_4
	ldr	w1, [x21]
	ldr	w8, [x22]
	orr	w8, w8, w0
Lloh13:
	adrp	x9, _OPMODE_PR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _OPMODE_PR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_CSR_WRITE_4
	ldr	w8, [x19]
	ldr	w9, [x20]
	eor	w8, w9, w8
LBB0_9:
Lloh16:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_15
; %bb.10:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_CSR_READ_4
	ldr	w1, [x21]
	ldr	w8, [x22]
	orr	w2, w8, w0
	mov	x0, x20
	bl	_CSR_WRITE_4
	b	LBB0_15
LBB0_11:
	cbz	w9, LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_fv_stop
	b	LBB0_15
LBB0_13:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_fv_init_locked
LBB0_15:
	ldr	w8, [x19]
	str	w8, [x20]
	mov	x0, x20
	bl	_FV_UNLOCK
LBB0_16:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_CSR_OPMODE,4,2                 ; @CSR_OPMODE
	.comm	_OPMODE_PM,4,2                  ; @OPMODE_PM
	.comm	_OPMODE_PR,4,2                  ; @OPMODE_PR
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_FV_CSUM_FEATURES,4,2           ; @FV_CSUM_FEATURES
	.comm	_IFCAP_HWCSUM,4,2               ; @IFCAP_HWCSUM
	.comm	_IFCAP_VLAN_HWTAGGING,4,2       ; @IFCAP_VLAN_HWTAGGING
	.comm	_mask,4,2                       ; @mask
	.no_dead_strip	_fv_ioctl
.subsections_via_symbols
