	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8180_conf_erp
_rtl8180_conf_erp:                      ## @rtl8180_conf_erp
	.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), %rbx
	movq	(%rbx), %rax
	movq	_RTL818X_CHIP_FAMILY_RTL8180@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	cmpq	$0, (%rsi)
	movl	$20, %eax
	movl	$9, %ecx
	cmovel	%eax, %ecx
	movl	%ecx, 8(%rbx)
	leal	(%rcx,%rcx), %r14d
	addl	$10, %r14d
	movl	12(%rbx), %eax
	leal	(%rax,%rcx,2), %r15d
	addl	$20, %r15d
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, %r12d
	movq	16(%rbx), %rsi
	addq	$20, %rsi
	movl	8(%rbx), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	16(%rbx), %rsi
	addq	$16, %rsi
	movq	%rbx, %rdi
	movl	$34, %edx
	callq	_rtl818x_iowrite8
	movq	16(%rbx), %rsi
	addq	$12, %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_rtl818x_iowrite8
	movq	16(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_rtl818x_iowrite8
	movq	(%rbx), %rax
	movq	_RTL818X_CHIP_FAMILY_RTL8187SE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	16(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	jmp	LBB0_3
LBB0_4:
	movq	_RTL818X_CHIP_FAMILY_RTL8185@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	subl	%r14d, %r15d
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	movq	16(%rbx), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl818x_iowrite8               ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTL818X_CHIP_FAMILY_RTL8180,8,3 ## @RTL818X_CHIP_FAMILY_RTL8180
	.comm	_RTL818X_CHIP_FAMILY_RTL8187SE,8,3 ## @RTL818X_CHIP_FAMILY_RTL8187SE
	.comm	_RTL818X_CHIP_FAMILY_RTL8185,8,3 ## @RTL818X_CHIP_FAMILY_RTL8185
	.no_dead_strip	_rtl8180_conf_erp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8180_conf_erp
_rtl8180_conf_erp:                      ; @rtl8180_conf_erp
	.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]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _RTL818X_CHIP_FAMILY_RTL8180@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTL818X_CHIP_FAMILY_RTL8180@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.1:
	ldr	x8, [x1]
	cmp	x8, #0
	mov	w8, #9
	mov	w9, #20
	csel	w8, w9, w8, eq
	str	w8, [x19, #8]
	lsl	w8, w8, #1
	add	w20, w8, #10
	ldr	w9, [x19, #12]
	add	w8, w8, w9
	add	w21, w8, #20
	mov	x0, x21
	mov	w1, #4
	bl	_DIV_ROUND_UP
	mov	x22, x0
	ldr	x8, [x19, #16]
	add	x1, x8, #20
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x8, [x19, #16]
	add	x1, x8, #16
	mov	x0, x19
	mov	w2, #34
	bl	_rtl818x_iowrite8
	ldr	x8, [x19, #16]
	add	x1, x8, #12
	mov	x0, x19
	mov	x2, x20
	bl	_rtl818x_iowrite8
	ldr	x8, [x19, #16]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x22
	bl	_rtl818x_iowrite8
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _RTL818X_CHIP_FAMILY_RTL8187SE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTL818X_CHIP_FAMILY_RTL8187SE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	add	x1, x8, #4
	mov	x0, x19
	mov	x2, x22
	b	LBB0_5
LBB0_3:
Lloh6:
	adrp	x9, _RTL818X_CHIP_FAMILY_RTL8185@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RTL818X_CHIP_FAMILY_RTL8185@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	sub	w0, w21, w20
	mov	w1, #4
	bl	_DIV_ROUND_UP
	mov	x2, x0
	ldr	x1, [x19, #16]
	mov	x0, x19
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_iowrite8
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RTL818X_CHIP_FAMILY_RTL8180,8,3 ; @RTL818X_CHIP_FAMILY_RTL8180
	.comm	_RTL818X_CHIP_FAMILY_RTL8187SE,8,3 ; @RTL818X_CHIP_FAMILY_RTL8187SE
	.comm	_RTL818X_CHIP_FAMILY_RTL8185,8,3 ; @RTL818X_CHIP_FAMILY_RTL8185
	.no_dead_strip	_rtl8180_conf_erp
.subsections_via_symbols
