	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ptm_ioctl
_ptm_ioctl:                             ## @ptm_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_g_net_dev@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	cmpq	%r12, (%rdi,%rbx,8)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_1
LBB0_3:
	movq	(%r13), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setl	%dil
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_ASSERT
	addl	$-128, %r15d
	cmpl	$3, %r15d
	ja	LBB0_6
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_WAN_MIB_TABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	movl	28(%rax,%rcx), %edx
	movq	(%r14), %rsi
	movl	%edx, 20(%rsi)
	movl	24(%rax,%rcx), %edx
	movl	%edx, 16(%rsi)
	movq	8(%rax,%rcx), %rdx
	addq	16(%rax,%rcx), %rdx
	movq	%rdx, 8(%rsi)
	movl	(%rax,%rcx), %eax
	movl	%eax, (%rsi)
	jmp	LBB0_18
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_7:
	movq	_WAN_MIB_TABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$4, %rcx
	movl	40(%rax,%rcx), %edx
	movq	(%r14), %rsi
	movl	%edx, 16(%rsi)
	movl	36(%rax,%rcx), %edx
	movl	%edx, 12(%rsi)
	movl	32(%rax,%rcx), %eax
	movl	%eax, 8(%rsi)
	movq	$0, (%rsi)
	jmp	LBB0_18
LBB0_8:
	movq	(%r14), %rcx
	xorl	%edx, %edx
	cmpl	$0, (%rcx)
	setne	%dl
	movq	_CFG_ETH_EFMTC_CRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edx, (%rax)
	xorl	%edx, %edx
	cmpl	$0, 4(%rcx)
	setne	%dl
	movl	%edx, 4(%rax)
	cmpl	$0, 8(%rcx)
	je	LBB0_11
## %bb.9:
	movl	12(%rcx), %esi
	movl	$1, %edx
	cmpl	$16, %esi
	je	LBB0_12
## %bb.10:
	cmpl	$32, %esi
	je	LBB0_12
LBB0_11:
	xorl	%edx, %edx
	xorl	%esi, %esi
LBB0_12:
	movl	%edx, 8(%rax)
	movl	%esi, 12(%rax)
	xorl	%edx, %edx
	cmpl	$0, 16(%rcx)
	setne	%dl
	movl	%edx, 16(%rax)
	cmpl	$0, 20(%rcx)
	je	LBB0_17
## %bb.13:
	movl	24(%rcx), %ecx
	cmpl	$32, %ecx
	je	LBB0_15
## %bb.14:
	cmpl	$16, %ecx
	jne	LBB0_17
LBB0_15:
	movl	$1, 20(%rax)
	movl	%ecx, 24(%rax)
	jmp	LBB0_18
LBB0_16:
	movq	_CFG_ETH_EFMTC_CRC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movups	(%rax), %xmm0
	movups	%xmm0, (%rcx)
	movl	16(%rax), %edx
	movl	%edx, 16(%rcx)
	movl	20(%rax), %edx
	movl	%edx, 20(%rcx)
	movl	24(%rax), %eax
	movl	%eax, 24(%rcx)
	jmp	LBB0_18
LBB0_17:
	movq	$0, 20(%rax)
LBB0_18:
	xorl	%eax, %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_g_net_dev,8,3                  ## @g_net_dev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ndev = %d (wrong value)"

	.comm	_WAN_MIB_TABLE,8,3              ## @WAN_MIB_TABLE
	.comm	_CFG_ETH_EFMTC_CRC,8,3          ## @CFG_ETH_EFMTC_CRC
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ptm_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ptm_ioctl
_ptm_ioctl:                             ; @ptm_ioctl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x23, _g_net_dev@GOTPAGE
Lloh1:
	ldr	x23, [x23, _g_net_dev@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	ldr	x8, [x0, x21, lsl #3]
	cmp	x8, x22
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w21, #0
LBB0_5:
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	cset	w0, lt
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_ASSERT
	sub	w8, w20, #128
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.6:
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_7
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_7:
	mov	w0, #0
Lloh6:
	adrp	x8, _WAN_MIB_TABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WAN_MIB_TABLE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x19]
	mov	w10, #48
	umaddl	x8, w21, w10, x8
	ldr	d0, [x8, #24]
	str	d0, [x9, #16]
	ldp	x11, x10, [x8, #8]
	add	x10, x11, x10
	str	x10, [x9, #8]
	ldr	w8, [x8]
	str	w8, [x9]
	b	LBB0_19
LBB0_8:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_9:
	mov	w0, #0
Lloh12:
	adrp	x8, _WAN_MIB_TABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WAN_MIB_TABLE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	mov	w9, #48
	umaddl	x8, w21, w9, x8
	ldr	w9, [x8, #40]
	ldr	x10, [x19]
	str	w9, [x10, #16]
	ldr	d0, [x8, #32]
	str	d0, [x10, #8]
	str	xzr, [x10]
	b	LBB0_19
LBB0_10:
	ldr	x9, [x19]
Lloh15:
	adrp	x8, _CFG_ETH_EFMTC_CRC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CFG_ETH_EFMTC_CRC@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	ldr	d0, [x9]
	cmeq.2s	v0, v0, #0
	movi.2s	v1, #1
	bic.8b	v0, v1, v0
	str	d0, [x8]
	ldr	w10, [x9, #8]
	cbz	w10, LBB0_13
; %bb.11:
	ldr	w10, [x9, #12]
	mov	w11, #1
	cmp	w10, #16
	b.eq	LBB0_14
; %bb.12:
	cmp	w10, #32
	b.eq	LBB0_14
LBB0_13:
	mov	w11, #0
	mov	w10, #0
LBB0_14:
	stp	w11, w10, [x8, #8]
	ldp	w10, w11, [x9, #16]
	cmp	w10, #0
	cset	w10, ne
	str	w10, [x8, #16]
	cbz	w11, LBB0_18
; %bb.15:
	ldr	w9, [x9, #24]
	cmp	w9, #32
	ccmp	w9, #16, #4, ne
	b.ne	LBB0_18
; %bb.16:
	mov	w0, #0
	mov	w10, #1
	stp	w10, w9, [x8, #20]
	b	LBB0_19
LBB0_17:
	mov	w0, #0
Lloh18:
	adrp	x8, _CFG_ETH_EFMTC_CRC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CFG_ETH_EFMTC_CRC@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	q0, [x8]
	str	q0, [x9]
	ldr	d0, [x8, #16]
	str	d0, [x9, #16]
	ldr	w8, [x8, #24]
	str	w8, [x9, #24]
	b	LBB0_19
LBB0_18:
	mov	w0, #0
	stp	wzr, wzr, [x8, #20]
LBB0_19:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_7)>>2
	.byte	(LBB0_9-LBB0_7)>>2
	.byte	(LBB0_10-LBB0_7)>>2
	.byte	(LBB0_17-LBB0_7)>>2
                                        ; -- End function
	.comm	_g_net_dev,8,3                  ; @g_net_dev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ndev = %d (wrong value)"

	.comm	_WAN_MIB_TABLE,8,3              ; @WAN_MIB_TABLE
	.comm	_CFG_ETH_EFMTC_CRC,8,3          ; @CFG_ETH_EFMTC_CRC
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ptm_ioctl
.subsections_via_symbols
