	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function change_level
_change_level:                          ## @change_level
	.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	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.3:
	cmpl	$15, %ecx
	jne	LBB0_5
## %bb.4:
	movl	$-1, %eax
	jmp	LBB0_7
LBB0_2:
	movl	$1, %eax
	jmp	LBB0_7
LBB0_5:
	movq	8(%rbx), %rdx
	cmpq	16(%rbx), %rdx
	jge	LBB0_8
## %bb.6:
	negl	%eax
LBB0_7:
	movl	%eax, (%rbx)
LBB0_8:
	movq	_rxl_tab@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addl	%ecx, %eax
	movl	%eax, 4(%rbx)
	cltq
	movl	(%rdx,%rax,4), %eax
	movl	%eax, 24(%rbx)
	movq	_CSR0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	callq	_inb
	movl	24(%rbx), %edi
	movq	_CSR1@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_outb
	movq	8(%rbx), %rax
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rxl_tab,8,3                    ## @rxl_tab
	.comm	_CSR0,8,3                       ## @CSR0
	.comm	_CSR1,8,3                       ## @CSR1
	.no_dead_strip	_change_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function change_level
_change_level:                          ; @change_level
	.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, x0
	bl	_netdev_priv
	ldr	w8, [x0]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	w9, [x0, #4]
	cbz	w9, LBB0_4
; %bb.2:
	cmp	w9, #15
	b.ne	LBB0_5
; %bb.3:
	mov	w8, #-1
	b	LBB0_7
LBB0_4:
	mov	w8, #1
	b	LBB0_7
LBB0_5:
	ldp	x10, x11, [x19, #8]
	cmp	x10, x11
	b.ge	LBB0_8
; %bb.6:
	neg	w8, w8
LBB0_7:
	str	w8, [x19]
LBB0_8:
Lloh0:
	adrp	x10, _rxl_tab@GOTPAGE
Lloh1:
	ldr	x10, [x10, _rxl_tab@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	add	w8, w8, w9
	str	w8, [x19, #4]
	ldr	w8, [x10, w8, sxtw #2]
	str	w8, [x19, #24]
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _CSR0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CSR0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
	ldr	w0, [x19, #24]
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _CSR1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CSR1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	ldr	x8, [x19, #8]
	stp	xzr, x8, [x19, #8]
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_rxl_tab,8,3                    ; @rxl_tab
	.comm	_CSR0,8,3                       ; @CSR0
	.comm	_CSR1,8,3                       ; @CSR1
	.no_dead_strip	_change_level
.subsections_via_symbols
