	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sxgbe_set_coalesce
_sxgbe_set_coalesce:                    ## @sxgbe_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	callq	_netdev_priv
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rsi
	callq	_sxgbe_usec2riwt
	movq	_SXGBE_MAX_DMA_RIWT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_1
## %bb.4:
	movq	_SXGBE_MIN_DMA_RIWT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jb	LBB0_1
## %bb.5:
	cmpl	$0, 16(%r14)
	je	LBB0_6
## %bb.7:
	movl	%eax, (%r14)
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movl	4(%r14), %edi
	movl	%eax, %esi
	callq	*(%rcx)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SXGBE_MAX_DMA_RIWT,4,2         ## @SXGBE_MAX_DMA_RIWT
	.comm	_SXGBE_MIN_DMA_RIWT,4,2         ## @SXGBE_MIN_DMA_RIWT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_sxgbe_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sxgbe_set_coalesce
_sxgbe_set_coalesce:                    ; @sxgbe_set_coalesce
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w0, [x20]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x19
	bl	_sxgbe_usec2riwt
Lloh0:
	adrp	x8, _SXGBE_MAX_DMA_RIWT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SXGBE_MAX_DMA_RIWT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SXGBE_MIN_DMA_RIWT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SXGBE_MIN_DMA_RIWT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #0, ls
	b.hs	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_7
; %bb.5:
	mov	x1, x0
	str	w0, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x19, #4]
	blr	x8
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SXGBE_MAX_DMA_RIWT,4,2         ; @SXGBE_MAX_DMA_RIWT
	.comm	_SXGBE_MIN_DMA_RIWT,4,2         ; @SXGBE_MIN_DMA_RIWT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_sxgbe_set_coalesce
.subsections_via_symbols
