	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmmac_set_coalesce
_stmmac_set_coalesce:                   ## @stmmac_set_coalesce
	.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
	movq	%rsi, %rbx
	callq	_netdev_priv
	cmpq	$0, 168(%rbx)
	jne	LBB0_18
## %bb.1:
	cmpq	$0, 160(%rbx)
	jne	LBB0_18
## %bb.2:
	cmpq	$0, 152(%rbx)
	jne	LBB0_18
## %bb.3:
	cmpq	$0, 144(%rbx)
	jne	LBB0_18
## %bb.4:
	cmpq	$0, 136(%rbx)
	jne	LBB0_18
## %bb.5:
	cmpq	$0, 128(%rbx)
	jne	LBB0_18
## %bb.6:
	cmpq	$0, 120(%rbx)
	jne	LBB0_18
## %bb.7:
	cmpq	$0, 112(%rbx)
	jne	LBB0_18
## %bb.8:
	cmpq	$0, 104(%rbx)
	jne	LBB0_18
## %bb.9:
	cmpq	$0, 96(%rbx)
	jne	LBB0_18
## %bb.10:
	cmpq	$0, 88(%rbx)
	jne	LBB0_18
## %bb.11:
	cmpq	$0, 80(%rbx)
	jne	LBB0_18
## %bb.12:
	cmpq	$0, 72(%rbx)
	jne	LBB0_18
## %bb.13:
	cmpq	$0, 64(%rbx)
	jne	LBB0_18
## %bb.14:
	cmpq	$0, 56(%rbx)
	jne	LBB0_18
## %bb.15:
	cmpq	$0, 48(%rbx)
	jne	LBB0_18
## %bb.16:
	cmpq	$0, 40(%rbx)
	jne	LBB0_18
## %bb.17:
	cmpq	$0, 32(%rbx)
	je	LBB0_20
LBB0_18:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_19:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%rax, %r14
	cmpq	$0, 32(%rax)
	je	LBB0_26
## %bb.21:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jle	LBB0_26
## %bb.22:
	movq	40(%r14), %rax
	movl	(%rax), %r15d
	movq	%r14, %rsi
	callq	_stmmac_usec2riwt
	movq	_MAX_DMA_RIWT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_24
## %bb.23:
	movq	_MIN_DMA_RIWT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jb	LBB0_24
## %bb.25:
	movl	%eax, (%r14)
	movl	28(%r14), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_stmmac_rx_watchdog
LBB0_26:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_28
## %bb.27:
	cmpq	$0, 16(%rbx)
	je	LBB0_24
LBB0_28:
	movq	_STMMAC_MAX_COAL_TX_TICK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_24
## %bb.29:
	movq	16(%rbx), %rcx
	movq	_STMMAC_TX_MAX_FRAMES@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jle	LBB0_30
LBB0_24:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_30:
	movq	%rcx, 8(%r14)
	movq	%rax, 16(%r14)
	movl	24(%rbx), %eax
	movl	%eax, 24(%r14)
	xorl	%eax, %eax
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MAX_DMA_RIWT,4,2               ## @MAX_DMA_RIWT
	.comm	_MIN_DMA_RIWT,4,2               ## @MIN_DMA_RIWT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_STMMAC_MAX_COAL_TX_TICK,8,3    ## @STMMAC_MAX_COAL_TX_TICK
	.comm	_STMMAC_TX_MAX_FRAMES,8,3       ## @STMMAC_TX_MAX_FRAMES
	.no_dead_strip	_stmmac_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmmac_set_coalesce
_stmmac_set_coalesce:                   ; @stmmac_set_coalesce
	.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	x19, x1
	bl	_netdev_priv
	ldr	x8, [x19, #168]
	cbnz	x8, LBB0_18
; %bb.1:
	ldr	x8, [x19, #160]
	cbnz	x8, LBB0_18
; %bb.2:
	ldr	x8, [x19, #152]
	cbnz	x8, LBB0_18
; %bb.3:
	ldr	x8, [x19, #144]
	cbnz	x8, LBB0_18
; %bb.4:
	ldr	x8, [x19, #136]
	cbnz	x8, LBB0_18
; %bb.5:
	ldr	x8, [x19, #128]
	cbnz	x8, LBB0_18
; %bb.6:
	ldr	x8, [x19, #120]
	cbnz	x8, LBB0_18
; %bb.7:
	ldr	x8, [x19, #112]
	cbnz	x8, LBB0_18
; %bb.8:
	ldr	x8, [x19, #104]
	cbnz	x8, LBB0_18
; %bb.9:
	ldr	x8, [x19, #96]
	cbnz	x8, LBB0_18
; %bb.10:
	ldr	x8, [x19, #88]
	cbnz	x8, LBB0_18
; %bb.11:
	ldr	x8, [x19, #80]
	cbnz	x8, LBB0_18
; %bb.12:
	ldr	x8, [x19, #72]
	cbnz	x8, LBB0_18
; %bb.13:
	ldr	x8, [x19, #64]
	cbnz	x8, LBB0_18
; %bb.14:
	ldr	x8, [x19, #56]
	cbnz	x8, LBB0_18
; %bb.15:
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_18
; %bb.16:
	ldr	x8, [x19, #40]
	cbnz	x8, LBB0_18
; %bb.17:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_21
LBB0_18:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	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
LBB0_21:
	mov	x20, x0
	ldr	x8, [x0, #32]
	cbz	x8, LBB0_26
; %bb.22:
	ldr	x0, [x19]
	cmp	x0, #1
	b.lt	LBB0_26
; %bb.23:
	mov	x1, x20
	ldr	x8, [x20, #40]
	ldr	w21, [x8]
	bl	_stmmac_usec2riwt
Lloh2:
	adrp	x8, _MAX_DMA_RIWT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_DMA_RIWT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hi	LBB0_30
; %bb.24:
	mov	x2, x0
Lloh5:
	adrp	x8, _MIN_DMA_RIWT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MIN_DMA_RIWT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lo	LBB0_30
; %bb.25:
	mov	x0, x20
	str	w2, [x20]
	ldr	w1, [x20, #28]
	mov	x3, x21
	bl	_stmmac_rx_watchdog
LBB0_26:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_28
; %bb.27:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_30
LBB0_28:
Lloh8:
	adrp	x9, _STMMAC_MAX_COAL_TX_TICK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _STMMAC_MAX_COAL_TX_TICK@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_30
; %bb.29:
	ldr	x9, [x19, #16]
Lloh11:
	adrp	x10, _STMMAC_TX_MAX_FRAMES@GOTPAGE
Lloh12:
	ldr	x10, [x10, _STMMAC_TX_MAX_FRAMES@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.le	LBB0_31
LBB0_30:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_31:
	mov	w0, #0
	stp	x9, x8, [x20, #8]
	ldr	w8, [x19, #24]
	str	w8, [x20, #24]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MAX_DMA_RIWT,4,2               ; @MAX_DMA_RIWT
	.comm	_MIN_DMA_RIWT,4,2               ; @MIN_DMA_RIWT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_STMMAC_MAX_COAL_TX_TICK,8,3    ; @STMMAC_MAX_COAL_TX_TICK
	.comm	_STMMAC_TX_MAX_FRAMES,8,3       ; @STMMAC_TX_MAX_FRAMES
	.no_dead_strip	_stmmac_set_coalesce
.subsections_via_symbols
