	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_netdev_set_coalesce
_nes_netdev_set_coalesce:               ## @nes_netdev_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_netdev_priv
	movq	(%rax), %r12
	movq	8(%r12), %rbx
	leaq	24(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	56(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, 64(%rbx)
LBB0_2:
	movq	48(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, 56(%rbx)
LBB0_4:
	movq	40(%r15), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, 48(%rbx)
LBB0_6:
	movq	32(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, 40(%rbx)
LBB0_8:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, 32(%rbx)
LBB0_10:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%r15), %esi
	movl	%esi, (%rbx)
	cmpq	$0, 16(%r15)
	je	LBB0_13
## %bb.11:
	movl	$1, 4(%rbx)
	movq	_NES_TIMER_INT_LIMIT_DYNAMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	$0, (%rbx)
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	%rax, 16(%rbx)
	jmp	LBB0_15
LBB0_13:
	movl	$0, 4(%rbx)
	movq	_NES_TIMER_INT_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	testl	%esi, %esi
	je	LBB0_15
## %bb.14:
	movq	_NES_PERIODIC_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r12), %rdi
	shll	$3, %esi
	orl	$-2147483648, %esi              ## imm = 0x80000000
	callq	_nes_write32
LBB0_15:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_TIMER_INT_LIMIT_DYNAMIC,4,2 ## @NES_TIMER_INT_LIMIT_DYNAMIC
	.comm	_NES_TIMER_INT_LIMIT,4,2        ## @NES_TIMER_INT_LIMIT
	.comm	_NES_PERIODIC_CONTROL,8,3       ## @NES_PERIODIC_CONTROL
	.no_dead_strip	_nes_netdev_set_coalesce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function nes_netdev_set_coalesce
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_nes_netdev_set_coalesce:               ; @nes_netdev_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	x22, [x0]
	ldr	x21, [x22, #8]
	add	x20, x21, #24
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_2
; %bb.1:
	str	x8, [x21, #64]
LBB0_2:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_4
; %bb.3:
	str	x8, [x21, #56]
LBB0_4:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.5:
	str	x8, [x21, #48]
LBB0_6:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_8
; %bb.7:
	str	x8, [x21, #40]
LBB0_8:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
; %bb.9:
	str	x8, [x21, #32]
LBB0_10:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w8, [x19]
	str	w8, [x21]
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_13
; %bb.11:
Lloh0:
	adrp	x8, _NES_TIMER_INT_LIMIT_DYNAMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NES_TIMER_INT_LIMIT_DYNAMIC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #8]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.12:
	str	x8, [x21, #16]
	b	LBB0_15
LBB0_13:
Lloh5:
	adrp	x9, _NES_TIMER_INT_LIMIT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NES_TIMER_INT_LIMIT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	wzr, w9, [x21, #4]
	cbz	w8, LBB0_15
; %bb.14:
	ldr	x9, [x22]
Lloh8:
	adrp	x10, _NES_PERIODIC_CONTROL@GOTPAGE
Lloh9:
	ldr	x10, [x10, _NES_PERIODIC_CONTROL@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	add	x0, x10, x9
	lsl	w8, w8, #3
	orr	w1, w8, #0x80000000
	bl	_nes_write32
LBB0_15:
	mov	w0, #0
	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
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_TIMER_INT_LIMIT_DYNAMIC,4,2 ; @NES_TIMER_INT_LIMIT_DYNAMIC
	.comm	_NES_TIMER_INT_LIMIT,4,2        ; @NES_TIMER_INT_LIMIT
	.comm	_NES_PERIODIC_CONTROL,8,3       ; @NES_PERIODIC_CONTROL
	.no_dead_strip	_nes_netdev_set_coalesce
.subsections_via_symbols
