	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether1394_reset_priv
_ether1394_reset_priv:                  ## @ether1394_reset_priv
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	16(%rax), %r13
	movq	16(%r13), %rax
	movq	(%rax), %rdi
	addq	$12, %rdi
	callq	_get_unaligned
	movl	%eax, -44(%rbp)
	movq	_IEEE1394_SPEED_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	8(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$512, (%rbx)                    ## imm = 0x200
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	8(%r13), %rcx
	movq	_SELFID_SPEED_UNKNOWN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	cmpl	%edx, %edi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%edi, %r15d
	cmovgel	%edi, %r15d
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_2
	jmp	LBB0_5
LBB0_3:
	movq	_IEEE1394_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	movl	%r15d, 4(%rbx)
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_ether1394_max_mtu
	movl	$1500, %edi                     ## imm = 0x5DC
	movl	%eax, %esi
	callq	_min
	movl	%eax, 8(%r12)
	movl	4(%r12), %edi
	leaq	-44(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	(%r12), %edi
	movl	$255, %esi
	movl	$4, %edx
	callq	_memset
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE1394_SPEED_MAX,4,2         ## @IEEE1394_SPEED_MAX
	.comm	_SELFID_SPEED_UNKNOWN,4,2       ## @SELFID_SPEED_UNKNOWN
	.comm	_IEEE1394_SPEED_100,4,2         ## @IEEE1394_SPEED_100
	.no_dead_strip	_ether1394_reset_priv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether1394_reset_priv
_ether1394_reset_priv:                  ; @ether1394_reset_priv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x23, x0
	ldr	x22, [x0, #16]
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	add	x0, x8, #12
	bl	_get_unaligned
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _IEEE1394_SPEED_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE1394_SPEED_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	add	x20, x23, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w0, [x23, #12]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w8, #512
	str	w8, [x23]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	ldr	x9, [x22, #8]
Lloh3:
	adrp	x10, _SELFID_SPEED_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SELFID_SPEED_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	cmp	w11, w10
	b.eq	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w24, w11
	csel	w24, w24, w11, lt
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	str	w24, [x23, #4]
	cbz	w21, LBB0_6
LBB0_5:
	mov	x0, x22
	bl	_ether1394_max_mtu
	mov	x1, x0
	mov	w0, #1500
	bl	_min
	str	w0, [x19, #8]
	ldr	w0, [x19, #4]
	add	x1, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [x19]
	mov	w1, #255
	mov	w2, #4
	bl	_memset
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
Lloh6:
	adrp	x8, _IEEE1394_SPEED_100@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE1394_SPEED_100@GOTPAGEOFF]
Lloh8:
	ldr	w24, [x8]
	str	w24, [x23, #4]
	cbnz	w21, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE1394_SPEED_MAX,4,2         ; @IEEE1394_SPEED_MAX
	.comm	_SELFID_SPEED_UNKNOWN,4,2       ; @SELFID_SPEED_UNKNOWN
	.comm	_IEEE1394_SPEED_100,4,2         ; @IEEE1394_SPEED_100
	.no_dead_strip	_ether1394_reset_priv
.subsections_via_symbols
