	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_netdev_set_pauseparam
_nes_netdev_set_pauseparam:             ## @nes_netdev_set_pauseparam
	.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, 8(%rbx)
	je	LBB0_1
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rax), %r14
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.3:
	cmpl	$1, (%r14)
	jne	LBB0_7
## %bb.4:
	movq	_NES_IDX_MAC_TX_CONFIG@GOTPCREL(%rip), %r15
	movslq	4(%r14), %rsi
	shlq	$9, %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_nes_read_indexed
	movq	_NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movslq	4(%r14), %rsi
	shlq	$9, %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_nes_write_indexed
	movl	$0, (%r14)
	jmp	LBB0_7
LBB0_5:
	cmpl	$0, (%r14)
	jne	LBB0_7
## %bb.6:
	movq	_NES_IDX_MAC_TX_CONFIG@GOTPCREL(%rip), %r15
	movslq	4(%r14), %rsi
	shlq	$9, %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_nes_read_indexed
	movq	_NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movslq	4(%r14), %rsi
	shlq	$9, %rsi
	addq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_nes_write_indexed
	movl	$1, (%r14)
LBB0_7:
	movl	4(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$1, %eax
	jne	LBB0_13
## %bb.9:
	cmpl	$1, 8(%r14)
	jne	LBB0_13
## %bb.10:
	movq	_NES_IDX_MPP_DEBUG@GOTPCREL(%rip), %rbx
	movslq	4(%r14), %rsi
	shlq	$6, %rsi
	addq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_nes_read_indexed
	movq	_NES_IDX_MPP_DEBUG_PORT_DISABLE_PAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movslq	4(%r14), %rsi
	shlq	$6, %rsi
	addq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_nes_write_indexed
	movl	$0, 8(%r14)
	jmp	LBB0_13
LBB0_11:
	cmpl	$0, 8(%r14)
	jne	LBB0_13
## %bb.12:
	movq	_NES_IDX_MPP_DEBUG@GOTPCREL(%rip), %rbx
	movslq	4(%r14), %rsi
	shlq	$6, %rsi
	addq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_nes_read_indexed
	movq	_NES_IDX_MPP_DEBUG_PORT_DISABLE_PAUSE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movslq	4(%r14), %rsi
	shlq	$6, %rsi
	addq	(%rbx), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_nes_write_indexed
	movl	$1, 8(%r14)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_IDX_MAC_TX_CONFIG,8,3      ## @NES_IDX_MAC_TX_CONFIG
	.comm	_NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE,4,2 ## @NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE
	.comm	_NES_IDX_MPP_DEBUG,8,3          ## @NES_IDX_MPP_DEBUG
	.comm	_NES_IDX_MPP_DEBUG_PORT_DISABLE_PAUSE,4,2 ## @NES_IDX_MPP_DEBUG_PORT_DISABLE_PAUSE
	.no_dead_strip	_nes_netdev_set_pauseparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_netdev_set_pauseparam
_nes_netdev_set_pauseparam:             ; @nes_netdev_set_pauseparam
	.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	x20, x1
	bl	_netdev_priv
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
LBB0_1:
	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
LBB0_2:
	ldr	x19, [x0]
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.3:
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.5:
Lloh0:
	adrp	x21, _NES_IDX_MAC_TX_CONFIG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NES_IDX_MAC_TX_CONFIG@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrsw	x9, [x19, #4]
	add	x1, x8, x9, lsl #9
	mov	x0, x19
	bl	_nes_read_indexed
Lloh2:
	adrp	x8, _NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	x8, [x21]
	ldrsw	x9, [x19, #4]
	add	x1, x8, x9, lsl #9
	mov	x0, x19
	bl	_nes_write_indexed
	str	wzr, [x19]
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_8
	b	LBB0_12
LBB0_6:
	ldr	w8, [x19]
	cbz	w8, LBB0_11
LBB0_7:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_12
LBB0_8:
	cmp	w8, #1
	b.ne	LBB0_1
; %bb.9:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_1
; %bb.10:
Lloh5:
	adrp	x20, _NES_IDX_MPP_DEBUG@GOTPAGE
Lloh6:
	ldr	x20, [x20, _NES_IDX_MPP_DEBUG@GOTPAGEOFF]
	ldr	x8, [x20]
	ldrsw	x9, [x19, #4]
	add	x1, x8, x9, lsl #6
	mov	x0, x19
	bl	_nes_read_indexed
Lloh7:
	adrp	x8, _NES_IDX_MPP_DEBUG_PORT_DISABLE_PAUSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NES_IDX_MPP_DEBUG_PORT_DISABLE_PAUSE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	x8, [x20]
	ldrsw	x9, [x19, #4]
	add	x1, x8, x9, lsl #6
	mov	x0, x19
	bl	_nes_write_indexed
	str	wzr, [x19, #8]
	b	LBB0_1
LBB0_11:
Lloh10:
	adrp	x21, _NES_IDX_MAC_TX_CONFIG@GOTPAGE
Lloh11:
	ldr	x21, [x21, _NES_IDX_MAC_TX_CONFIG@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrsw	x9, [x19, #4]
	add	x1, x8, x9, lsl #9
	mov	x0, x19
	bl	_nes_read_indexed
Lloh12:
	adrp	x8, _NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	bic	w2, w0, w8
	ldr	x8, [x21]
	ldrsw	x9, [x19, #4]
	add	x1, x8, x9, lsl #9
	mov	x0, x19
	bl	_nes_write_indexed
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_8
LBB0_12:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_1
; %bb.13:
Lloh15:
	adrp	x20, _NES_IDX_MPP_DEBUG@GOTPAGE
Lloh16:
	ldr	x20, [x20, _NES_IDX_MPP_DEBUG@GOTPAGEOFF]
	ldr	x8, [x20]
	ldrsw	x9, [x19, #4]
	add	x1, x8, x9, lsl #6
	mov	x0, x19
	bl	_nes_read_indexed
Lloh17:
	adrp	x8, _NES_IDX_MPP_DEBUG_PORT_DISABLE_PAUSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NES_IDX_MPP_DEBUG_PORT_DISABLE_PAUSE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	x8, [x20]
	ldrsw	x9, [x19, #4]
	add	x1, x8, x9, lsl #6
	mov	x0, x19
	bl	_nes_write_indexed
	mov	w8, #1
	str	w8, [x19, #8]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_IDX_MAC_TX_CONFIG,8,3      ; @NES_IDX_MAC_TX_CONFIG
	.comm	_NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE,4,2 ; @NES_IDX_MAC_TX_CONFIG_ENABLE_PAUSE
	.comm	_NES_IDX_MPP_DEBUG,8,3          ; @NES_IDX_MPP_DEBUG
	.comm	_NES_IDX_MPP_DEBUG_PORT_DISABLE_PAUSE,4,2 ; @NES_IDX_MPP_DEBUG_PORT_DISABLE_PAUSE
	.no_dead_strip	_nes_netdev_set_pauseparam
.subsections_via_symbols
