	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iflib_link_state_change        ## -- Begin function iflib_link_state_change
	.p2align	4, 0x90
_iflib_link_state_change:               ## @iflib_link_state_change
	.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, %r13d
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	24(%rdi), %r14d
	movq	16(%rdi), %rbx
	movl	%r14d, %edi
	movl	%edx, %esi
	callq	_if_setbaudrate
	movl	$10, %edi
	callq	_IF_Gbps
	cmpl	%r13d, %eax
	jg	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_STATE_LOCK
	movq	_IFC_PREFETCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
	movq	%r12, %rdi
	callq	_STATE_UNLOCK
LBB0_2:
	movl	(%r12), %eax
	movq	_LINK_STATE_UP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
## %bb.3:
	movq	_LINK_STATE_DOWN@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_23
## %bb.4:
	movl	4(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_23
## %bb.5:
	leal	-1(%rax), %edx
	xorl	%r10d, %r10d
	cmpl	$7, %edx
	jb	LBB0_16
## %bb.6:
	movq	_IFLIB_QUEUE_IDLE@GOTPCREL(%rip), %r8
	leaq	4(%r8), %rcx
	cmpq	%rcx, %rbx
	jae	LBB0_8
## %bb.7:
	leaq	(%rbx,%rdx,4), %rcx
	addq	$4, %rcx
	cmpq	_IFLIB_QUEUE_IDLE@GOTPCREL(%rip), %rcx
	ja	LBB0_16
LBB0_8:
	incq	%rdx
	movq	%rdx, %r10
	andq	$-8, %r10
	leaq	-8(%r10), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.10:
	movq	%r9, %rdi
	andq	$-2, %rdi
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rbx,%rsi,4)
	movdqu	%xmm0, 16(%rbx,%rsi,4)
	movdqu	%xmm0, 32(%rbx,%rsi,4)
	movdqu	%xmm0, 48(%rbx,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_11
## %bb.12:
	testb	$1, %r9b
	je	LBB0_14
LBB0_13:
	movd	(%r8), %xmm0                    ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, (%rbx,%rsi,4)
	movdqu	%xmm0, 16(%rbx,%rsi,4)
LBB0_14:
	cmpq	%r10, %rdx
	je	LBB0_23
## %bb.15:
	leaq	(%rbx,%r10,4), %rbx
LBB0_16:
	movl	%eax, %esi
	subl	%r10d, %esi
	movl	%r10d, %r8d
	notl	%r8d
	addl	%eax, %r8d
	andl	$7, %esi
	je	LBB0_20
## %bb.17:
	negl	%esi
	xorl	%edi, %edi
	movq	_IFLIB_QUEUE_IDLE@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx), %edx
	movl	%edx, (%rbx)
	addq	$4, %rbx
	decl	%edi
	cmpl	%edi, %esi
	jne	LBB0_18
## %bb.19:
	subl	%edi, %r10d
LBB0_20:
	cmpl	$7, %r8d
	jb	LBB0_23
## %bb.21:
	subl	%r10d, %eax
	xorl	%ecx, %ecx
	movq	_IFLIB_QUEUE_IDLE@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	movl	%esi, (%rbx,%rcx,4)
	movl	(%rdx), %esi
	movl	%esi, 4(%rbx,%rcx,4)
	movl	%esi, 8(%rbx,%rcx,4)
	movl	%esi, 12(%rbx,%rcx,4)
	movl	%esi, 16(%rbx,%rcx,4)
	movl	(%rdx), %esi
	movl	%esi, 20(%rbx,%rcx,4)
	movl	%esi, 24(%rbx,%rcx,4)
	movl	%esi, 28(%rbx,%rcx,4)
	addq	$8, %rcx
	cmpl	%ecx, %eax
	jne	LBB0_22
LBB0_23:
	movl	%r15d, (%r12)
	movl	%r14d, %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_if_link_state_change           ## TAILCALL
LBB0_9:
	xorl	%esi, %esi
	testb	$1, %r9b
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_IFC_PREFETCH,4,2               ## @IFC_PREFETCH
	.comm	_LINK_STATE_UP,4,2              ## @LINK_STATE_UP
	.comm	_LINK_STATE_DOWN,4,2            ## @LINK_STATE_DOWN
	.comm	_IFLIB_QUEUE_IDLE,4,2           ## @IFLIB_QUEUE_IDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iflib_link_state_change        ; -- Begin function iflib_link_state_change
	.p2align	2
_iflib_link_state_change:               ; @iflib_link_state_change
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	w20, [x0, #24]
	ldr	x23, [x0, #16]
	mov	x0, x20
	mov	x1, x2
	bl	_if_setbaudrate
	mov	w0, #10
	bl	_IF_Gbps
	cmp	w0, w22
	b.gt	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_STATE_LOCK
Lloh0:
	adrp	x8, _IFC_PREFETCH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFC_PREFETCH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	orr	w8, w9, w8
	str	w8, [x21, #8]
	mov	x0, x21
	bl	_STATE_UNLOCK
LBB0_2:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _LINK_STATE_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LINK_STATE_UP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _LINK_STATE_DOWN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LINK_STATE_DOWN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w10, w19, #0, eq
	b.ne	LBB0_10
; %bb.3:
	ldr	w9, [x21, #4]
	subs	w10, w9, #1
	b.lt	LBB0_10
; %bb.4:
Lloh9:
	adrp	x8, _IFLIB_QUEUE_IDLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IFLIB_QUEUE_IDLE@GOTPAGEOFF]
	cmp	w10, #15
	b.lo	LBB0_7
; %bb.5:
	add	x11, x8, #4
	cmp	x23, x11
	b.hs	LBB0_11
; %bb.6:
	add	x11, x23, w10, uxtw #2
	add	x11, x11, #4
	cmp	x11, x8
	b.ls	LBB0_11
LBB0_7:
	mov	w11, #0
	mov	x10, x23
LBB0_8:
	sub	w9, w9, w11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8]
	str	w11, [x10], #4
	subs	w9, w9, #1
	b.ne	LBB0_9
LBB0_10:
	str	w19, [x21]
	mov	x0, x20
	mov	x1, x19
	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
	b	_if_link_state_change
LBB0_11:
	add	x12, x10, #1
	and	x11, x12, #0x1fffffff0
	add	x10, x23, x11, lsl #2
	ld1r.4s	{ v0 }, [x8]
	add	x13, x23, #32
	mov	x14, x11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_12
; %bb.13:
	cmp	x12, x11
	b.ne	LBB0_8
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IFC_PREFETCH,4,2               ; @IFC_PREFETCH
	.comm	_LINK_STATE_UP,4,2              ; @LINK_STATE_UP
	.comm	_LINK_STATE_DOWN,4,2            ; @LINK_STATE_DOWN
	.comm	_IFLIB_QUEUE_IDLE,4,2           ; @IFLIB_QUEUE_IDLE
.subsections_via_symbols
