	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ftgmac100_adjust_link
_ftgmac100_adjust_link:                 ## @ftgmac100_adjust_link
	.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
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rbx), %r14
	cmpl	$0, 24(%r14)
	je	LBB0_1
## %bb.2:
	movl	(%r14), %r12d
	cmpq	$0, 40(%r15)
	je	LBB0_7
LBB0_4:
	movl	4(%r14), %r13d
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.6:
	xorl	%ebx, %ebx
	testl	%r13d, %r13d
	sete	%bl
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
	cmpq	$0, 40(%r15)
	jne	LBB0_4
LBB0_7:
	movl	(%r15), %r13d
	movl	4(%r15), %ebx
	jmp	LBB0_8
LBB0_5:
	movl	%r13d, %ebx
LBB0_8:
	movl	8(%r15), %eax
	cmpl	%eax, (%r14)
	jne	LBB0_12
## %bb.9:
	movq	8(%r14), %rcx
	cmpq	16(%r15), %rcx
	jne	LBB0_12
## %bb.10:
	cmpl	(%r15), %r13d
	jne	LBB0_12
## %bb.11:
	cmpl	4(%r15), %ebx
	je	LBB0_15
LBB0_12:
	orl	%r12d, %eax
	jne	LBB0_14
## %bb.13:
	movl	$0, 8(%r15)
	movq	8(%r14), %rax
	movq	%rax, 16(%r15)
	movl	%r13d, (%r15)
	movl	%ebx, 4(%r15)
	jmp	LBB0_15
LBB0_14:
	movq	%r14, %rdi
	callq	_phy_print_status
	movl	%r12d, 8(%r15)
	movq	8(%r14), %rax
	movq	%rax, 16(%r15)
	movl	%r13d, (%r15)
	movl	%ebx, 4(%r15)
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.16:
	movq	_FTGMAC100_OFFSET_IER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	32(%r15), %rsi
	xorl	%edi, %edi
	callq	_iowrite32
	addq	$24, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FTGMAC100_OFFSET_IER,8,3       ## @FTGMAC100_OFFSET_IER
	.no_dead_strip	_ftgmac100_adjust_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ftgmac100_adjust_link
_ftgmac100_adjust_link:                 ; @ftgmac100_adjust_link
	.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, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	x20, [x20]
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w21, [x20]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_4
LBB0_2:
	ldr	w22, [x20, #4]
	ldr	x8, [x20, #16]
	cmp	w22, #0
	cset	w9, eq
	cmp	x8, #0
	csel	w23, w22, w9, eq
	b	LBB0_5
LBB0_3:
	mov	w21, #0
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_2
LBB0_4:
	ldp	w22, w23, [x19]
LBB0_5:
	ldr	w9, [x20]
	ldr	w8, [x19, #8]
	cmp	w9, w8
	b.ne	LBB0_9
; %bb.6:
	ldr	x9, [x20, #8]
	ldr	x10, [x19, #16]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.7:
	ldr	w9, [x19]
	cmp	w22, w9
	b.ne	LBB0_9
; %bb.8:
	ldr	w9, [x19, #4]
	cmp	w23, w9
	b.eq	LBB0_13
LBB0_9:
	orr	w8, w21, w8
	cbnz	w8, LBB0_11
; %bb.10:
	str	wzr, [x19, #8]
	ldr	x8, [x20, #8]
	str	x8, [x19, #16]
	stp	w22, w23, [x19]
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_phy_print_status
	str	w21, [x19, #8]
	ldr	x8, [x20, #8]
	str	x8, [x19, #16]
	stp	w22, w23, [x19]
	cbz	w21, LBB0_13
; %bb.12:
	ldr	x8, [x19, #32]
Lloh0:
	adrp	x9, _FTGMAC100_OFFSET_IER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FTGMAC100_OFFSET_IER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_iowrite32
	add	x0, x19, #24
	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	_schedule_work
LBB0_13:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FTGMAC100_OFFSET_IER,8,3       ; @FTGMAC100_OFFSET_IER
	.no_dead_strip	_ftgmac100_adjust_link
.subsections_via_symbols
