	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366s_setCPUPort            ## -- Begin function rtl8366s_setCPUPort
	.p2align	4, 0x90
_rtl8366s_setCPUPort:                   ## @rtl8366s_setCPUPort
	.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
	cmpl	$5, %edi
	jle	LBB0_2
## %bb.1:
	leaq	L_str.7(%rip), %r12
	jmp	LBB0_13
LBB0_2:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movl	%edi, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_rtl8366s_setCPUPortMask
	leaq	L_str.6(%rip), %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movl	$1, %edi
	xorl	%esi, %esi
	callq	_rtl8366s_setCPUPortMask
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	movl	$2, %edi
	xorl	%esi, %esi
	callq	_rtl8366s_setCPUPortMask
	testq	%rax, %rax
	jne	LBB0_13
## %bb.5:
	movl	$3, %edi
	xorl	%esi, %esi
	callq	_rtl8366s_setCPUPortMask
	testq	%rax, %rax
	jne	LBB0_13
## %bb.6:
	movl	$4, %edi
	xorl	%esi, %esi
	callq	_rtl8366s_setCPUPortMask
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:
	movl	$5, %edi
	xorl	%esi, %esi
	callq	_rtl8366s_setCPUPortMask
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_rtl8366s_setCPUPortMask
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:
	movl	%r15d, %edi
	callq	_rtl8366s_setCPUDisableInsTag
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_str.4(%rip), %r12
	jmp	LBB0_13
LBB0_11:
	movl	%r14d, %edi
	callq	_rtl8366s_setCPUDropUnda
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	leaq	L_str(%rip), %r12
LBB0_13:
	movq	%r12, %rdi
	callq	_puts
	movl	$-1, %eax
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"rtl8366s_setCPUPort: rtl8366s_setCPUDropUnda fail"

L_str.4:                                ## @str.4
	.asciz	"rtl8366s_setCPUPort: rtl8366s_setCPUDisableInsTag fail"

L_str.6:                                ## @str.6
	.asciz	"rtl8366s_setCPUPort: rtl8366s_setCPUPortMask failed"

L_str.7:                                ## @str.7
	.asciz	"rtl8366s_setCPUPort: invalid port number"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8366s_setCPUPort            ; -- Begin function rtl8366s_setCPUPort
	.p2align	2
_rtl8366s_setCPUPort:                   ; @rtl8366s_setCPUPort
	.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
	cmp	w0, #5
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_str.7@PAGE
Lloh1:
	add	x0, x0, l_str.7@PAGEOFF
	b	LBB0_10
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #0
	mov	w1, #0
	bl	_rtl8366s_setCPUPortMask
	cbnz	x0, LBB0_9
; %bb.3:
	mov	w0, #1
	mov	w1, #0
	bl	_rtl8366s_setCPUPortMask
	cbnz	x0, LBB0_9
; %bb.4:
	mov	w0, #2
	mov	w1, #0
	bl	_rtl8366s_setCPUPortMask
	cbnz	x0, LBB0_9
; %bb.5:
	mov	w0, #3
	mov	w1, #0
	bl	_rtl8366s_setCPUPortMask
	cbnz	x0, LBB0_9
; %bb.6:
	mov	w0, #4
	mov	w1, #0
	bl	_rtl8366s_setCPUPortMask
	cbnz	x0, LBB0_9
; %bb.7:
	mov	w0, #5
	mov	w1, #0
	bl	_rtl8366s_setCPUPortMask
	cbnz	x0, LBB0_9
; %bb.8:
	mov	x0, x21
	mov	w1, #1
	bl	_rtl8366s_setCPUPortMask
	cbz	x0, LBB0_12
LBB0_9:
Lloh2:
	adrp	x0, l_str.6@PAGE
Lloh3:
	add	x0, x0, l_str.6@PAGEOFF
LBB0_10:
	bl	_puts
	mov	w0, #-1
LBB0_11:
	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_12:
	mov	x0, x20
	bl	_rtl8366s_setCPUDisableInsTag
	cbz	x0, LBB0_14
; %bb.13:
Lloh4:
	adrp	x0, l_str.4@PAGE
Lloh5:
	add	x0, x0, l_str.4@PAGEOFF
	b	LBB0_10
LBB0_14:
	mov	x0, x19
	bl	_rtl8366s_setCPUDropUnda
	cbz	x0, LBB0_11
; %bb.15:
Lloh6:
	adrp	x0, l_str@PAGE
Lloh7:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"rtl8366s_setCPUPort: rtl8366s_setCPUDropUnda fail"

l_str.4:                                ; @str.4
	.asciz	"rtl8366s_setCPUPort: rtl8366s_setCPUDisableInsTag fail"

l_str.6:                                ; @str.6
	.asciz	"rtl8366s_setCPUPort: rtl8366s_setCPUPortMask failed"

l_str.7:                                ; @str.7
	.asciz	"rtl8366s_setCPUPort: invalid port number"

.subsections_via_symbols
