	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8187_conf_tx
_rtl8187_conf_tx:                       ## @rtl8187_conf_tx
	.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	$4, %edx
	jl	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	%rcx, %r12
	movl	%edx, %ebx
	movq	(%rdi), %r14
	movl	12(%rcx), %edi
	callq	_fls
	movl	%eax, %r15d
	movl	8(%r12), %edi
	callq	_fls
	cmpq	$0, 24(%r14)
	je	LBB0_4
## %bb.3:
	movl	(%r12), %ecx
	movq	(%r14), %rdx
	movslq	%ebx, %rsi
	movl	%ecx, (%rdx,%rsi,4)
	movq	_rtl8187b_ac_addr@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rsi,4), %esi
	movl	4(%r12), %ecx
	shll	$16, %ecx
	shll	$12, %eax
	shll	$8, %r15d
	orl	%eax, %r15d
	orl	%ecx, %r15d
	movl	8(%r14), %edx
	imull	(%r12), %edx
	movq	_SIFS_TIME@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
	orl	%r15d, %edx
	movq	%r14, %rdi
	callq	_rtl818x_iowrite32
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.5:
	movq	16(%r14), %rsi
	shll	$4, %eax
	orl	%r15d, %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_rtl818x_iowrite8
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_rtl8187b_ac_addr,8,3           ## @rtl8187b_ac_addr
	.comm	_SIFS_TIME,4,2                  ## @SIFS_TIME
	.no_dead_strip	_rtl8187_conf_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8187_conf_tx
_rtl8187_conf_tx:                       ; @rtl8187_conf_tx
	.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	w2, #4
	b.lt	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	mov	x20, x3
	mov	x22, x2
	ldr	x19, [x0]
	ldr	w0, [x3, #12]
	bl	_fls
	mov	x21, x0
	ldr	w0, [x20, #8]
	bl	_fls
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w8, [x20]
	ldr	x9, [x19]
	sbfiz	x10, x22, #2, #32
	str	w8, [x9, x10]
Lloh3:
	adrp	x8, _rtl8187b_ac_addr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rtl8187b_ac_addr@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w1, [x8, x10]
	lsl	w8, w0, #12
	ldp	w10, w9, [x20]
Lloh6:
	adrp	x11, _SIFS_TIME@GOTPAGE
Lloh7:
	ldr	x11, [x11, _SIFS_TIME@GOTPAGEOFF]
	ldr	w12, [x19, #8]
Lloh8:
	ldr	w11, [x11]
	madd	w10, w12, w10, w11
	orr	w8, w8, w21, lsl #8
	orr	w8, w8, w9, lsl #16
	orr	w2, w8, w10
	mov	x0, x19
	bl	_rtl818x_iowrite32
LBB0_4:
	mov	w0, #0
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
	ret
LBB0_6:
	cbnz	w22, LBB0_1
; %bb.7:
	ldr	x1, [x19, #16]
	orr	w2, w21, w0, lsl #4
	mov	x0, x19
	bl	_rtl818x_iowrite8
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_rtl8187b_ac_addr,8,3           ; @rtl8187b_ac_addr
	.comm	_SIFS_TIME,4,2                  ; @SIFS_TIME
	.no_dead_strip	_rtl8187_conf_tx
.subsections_via_symbols
