	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8180_conf_basic_rates
_rtl8180_conf_basic_rates:              ## @rtl8180_conf_basic_rates
	.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	(%rdi), %r14
	movl	%esi, %ebx
	orl	$336, %ebx                      ## imm = 0x150
	cmpl	$16, %esi
	cmovael	%esi, %ebx
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	movl	%esi, %r15d
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.3:
	movl	%r15d, %edi
	callq	_fls
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ebx
	movq	8(%r14), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_rtl818x_ioread16
	andl	$-4, %eax
	orl	%eax, %ebx
	movq	8(%r14), %rsi
	addq	$8, %rsi
	jmp	LBB0_6
LBB0_5:
	movq	8(%r14), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl818x_iowrite16              ## TAILCALL
LBB0_4:
	movl	%ebx, %edi
	callq	_fls
	movl	%eax, %r12d
	bsfl	%ebx, %ebx
	movq	8(%r14), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_rtl818x_iowrite16
	movq	8(%r14), %rsi
	addq	$4, %rsi
	shll	$4, %r12d
	addl	$-16, %r12d
	orl	%ebx, %r12d
	movq	%r14, %rdi
	movl	%r12d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl818x_iowrite8               ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rtl8180_conf_basic_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8180_conf_basic_rates
_rtl8180_conf_basic_rates:              ; @rtl8180_conf_basic_rates
	.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
	ldr	x19, [x0]
	mov	w8, #336
	orr	w8, w1, w8
	cmp	w1, #16
	csel	w21, w8, w1, lo
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x1
	cmp	w8, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_fls
	sub	w20, w0, #1
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	mov	x0, x19
	bl	_rtl818x_ioread16
	and	w8, w0, #0xfffffffc
	orr	w2, w8, w20
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	mov	x0, x19
	b	LBB0_5
LBB0_4:
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	x2, x21
LBB0_5:
	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
	b	_rtl818x_iowrite16
LBB0_6:
	mov	x0, x21
	bl	_fls
	mov	x22, x0
	rbit	w8, w21
	clz	w21, w8
	ldr	x8, [x19, #8]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x20
	bl	_rtl818x_iowrite16
	ldr	x8, [x19, #8]
	add	x1, x8, #4
	lsl	w8, w22, #4
	sub	w8, w8, #16
	orr	w2, w8, w21
	mov	x0, x19
	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
	b	_rtl818x_iowrite8
LBB0_7:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rtl8180_conf_basic_rates
.subsections_via_symbols
