	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8187_conf_erp
_rtl8187_conf_erp:                      ## @rtl8187_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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movl	%edx, %r14d
	xorl	%eax, %eax
	testl	%r15d, %r15d
	movl	$20, %ecx
	movl	$9, %edx
	cmovel	%ecx, %edx
	movl	$50, %ecx
	movl	$28, %r15d
	cmovel	%ecx, %r15d
	sete	%al
	leal	83(,%rax,8), %r12d
	movl	%edx, (%rbx)
	movq	16(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$34, %edx
	callq	_rtl818x_iowrite8
	movq	16(%rbx), %rsi
	addq	$4, %rsi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	16(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_rtl818x_iowrite8
	movq	16(%rbx), %rsi
	addq	$24, %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_rtl818x_iowrite8
	leal	232(%r15), %eax
	addl	$304, %r15d                     ## imm = 0x130
	testl	%r14d, %r14d
	cmovnel	%eax, %r15d
	movq	16(%rbx), %r14
	addq	$12, %r14
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_DIV_ROUND_UP
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	movq	_rtl8187b_ac_addr@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	8(%rbx), %rcx
	movl	(%rbx), %edx
	imull	(%rcx), %edx
	movq	(%rax), %rsi
	movq	_SIFS_TIME@GOTPCREL(%rip), %r15
	addl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	(%r14), %rax
	movq	8(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rbx), %edx
	imull	4(%rax), %edx
	addl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	(%r14), %rax
	movq	16(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rbx), %edx
	imull	8(%rax), %edx
	addl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_rtl818x_iowrite8
	movq	(%r14), %rax
	movq	24(%rax), %rsi
	movq	8(%rbx), %rax
	movl	(%rbx), %edx
	imull	12(%rax), %edx
	addl	(%r15), %edx
	movq	%rbx, %rdi
	jmp	LBB0_4
LBB0_2:
	movq	16(%rbx), %rsi
	movq	%rbx, %rdi
	movl	$34, %edx
	callq	_rtl818x_iowrite8
	movq	16(%rbx), %rsi
	addq	$4, %rsi
	movq	%rbx, %rdi
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.3:
	movl	$9, %edx
	callq	_rtl818x_iowrite8
	movq	16(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	$20, %edx
	callq	_rtl818x_iowrite8
	movq	16(%rbx), %rsi
	addq	$16, %rsi
	movq	%rbx, %rdi
	movl	$71, %edx
	jmp	LBB0_4
LBB0_5:
	movl	$20, %edx
	callq	_rtl818x_iowrite8
	movq	16(%rbx), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	movl	$36, %edx
	callq	_rtl818x_iowrite8
	movq	16(%rbx), %rsi
	addq	$16, %rsi
	movq	%rbx, %rdi
	movl	$55, %edx
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl818x_iowrite8               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_rtl8187b_ac_addr,8,3           ## @rtl8187b_ac_addr
	.comm	_SIFS_TIME,4,2                  ## @SIFS_TIME
	.no_dead_strip	_rtl8187_conf_erp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8187_conf_erp
_rtl8187_conf_erp:                      ; @rtl8187_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
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x20, x2
	mov	w8, #9
	mov	w9, #20
	cmp	w21, #0
	csel	w8, w9, w8, eq
	mov	w9, #28
	mov	w10, #50
	csel	w21, w10, w9, eq
	mov	w9, #83
	mov	w10, #91
	csel	w22, w10, w9, eq
	str	w8, [x19]
	ldr	x1, [x19, #16]
	mov	x0, x19
	mov	w2, #34
	bl	_rtl818x_iowrite8
	ldr	x8, [x19, #16]
	add	x1, x8, #4
	ldr	w2, [x19]
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x8, [x19, #16]
	add	x1, x8, #8
	mov	x0, x19
	mov	x2, x21
	bl	_rtl818x_iowrite8
	ldr	x8, [x19, #16]
	add	x1, x8, #24
	mov	x0, x19
	mov	x2, x22
	bl	_rtl818x_iowrite8
	mov	w8, #232
	mov	w9, #304
	cmp	w20, #0
	csel	w8, w9, w8, eq
	add	w0, w21, w8
	ldr	x8, [x19, #16]
	add	x20, x8, #12
	mov	w1, #4
	bl	_DIV_ROUND_UP
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_rtl818x_iowrite8
Lloh0:
	adrp	x20, _rtl8187b_ac_addr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _rtl8187b_ac_addr@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x1, [x8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	ldr	w9, [x19]
Lloh2:
	adrp	x21, _SIFS_TIME@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SIFS_TIME@GOTPAGEOFF]
	ldr	w10, [x21]
	madd	w2, w9, w8, w10
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x8, [x20]
	ldr	x1, [x8, #8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #4]
	ldr	w9, [x19]
	ldr	w10, [x21]
	madd	w2, w9, w8, w10
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x8, [x20]
	ldr	x1, [x8, #16]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #8]
	ldr	w9, [x19]
	ldr	w10, [x21]
	madd	w2, w9, w8, w10
	mov	x0, x19
	bl	_rtl818x_iowrite8
	ldr	x8, [x20]
	ldr	x1, [x8, #24]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #12]
	ldr	w9, [x19]
	ldr	w10, [x21]
	madd	w2, w9, w8, w10
	mov	x0, x19
	b	LBB0_5
LBB0_2:
	ldr	x1, [x19, #16]
	mov	x0, x19
	mov	w2, #34
	bl	_rtl818x_iowrite8
	ldr	x8, [x19, #16]
	add	x1, x8, #4
	mov	x0, x19
	cbz	w21, LBB0_4
; %bb.3:
	mov	w2, #9
	bl	_rtl818x_iowrite8
	ldr	x8, [x19, #16]
	add	x1, x8, #8
	mov	x0, x19
	mov	w2, #20
	bl	_rtl818x_iowrite8
	ldr	x8, [x19, #16]
	add	x1, x8, #16
	mov	x0, x19
	mov	w2, #71
	b	LBB0_5
LBB0_4:
	mov	w2, #20
	bl	_rtl818x_iowrite8
	ldr	x8, [x19, #16]
	add	x1, x8, #8
	mov	x0, x19
	mov	w2, #36
	bl	_rtl818x_iowrite8
	ldr	x8, [x19, #16]
	add	x1, x8, #16
	mov	x0, x19
	mov	w2, #55
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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rtl8187b_ac_addr,8,3           ; @rtl8187b_ac_addr
	.comm	_SIFS_TIME,4,2                  ; @SIFS_TIME
	.no_dead_strip	_rtl8187_conf_erp
.subsections_via_symbols
