	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_fill_h2c_cmd
__rtl92s_fill_h2c_cmd:                  ## @_rtl92s_fill_h2c_cmd
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	-1(%rdx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpq	$2, %rdx
	movl	$1, %eax
	cmovaeq	%rdx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	_H2C_TX_CMD_HDR_LEN@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	xorl	%r15d, %r15d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r15
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rax
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %r13
	movq	(%r14,%r15,8), %rdi
	movl	$8, %esi
	callq	_N_BYTE_ALIGMENT
	movslq	%eax, %r12
	addq	%r13, %r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	leaq	(%r12,%r13), %rax
	cmpq	-96(%rbp), %rax                 ## 8-byte Folded Reload
	ja	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_skb_put
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	(%rax,%r13,8), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_memset
	movl	(%r14,%r15,8), %ecx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_SET_BITS_TO_LE_4BYTE
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,8), %ecx
	movq	%r13, %rdi
	movl	$16, %esi
	movl	$8, %edx
	callq	_SET_BITS_TO_LE_4BYTE
	movq	16(%rbp), %r12
	movq	(%r12), %rcx
	andl	$127, %ecx
	movq	%rcx, (%r12)
	movq	%r13, %rdi
	movl	$24, %esi
	movl	$7, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SET_BITS_TO_LE_4BYTE
	incq	(%r12)
	movslq	(%rbx), %rax
	leaq	(,%rax,8), %rdi
	addq	%r13, %rdi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rsi
	movq	(%r14,%r15,8), %rdx
	callq	_memcpy
	cmpq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax,8), %rdi
	movl	$31, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_SET_BITS_TO_LE_4BYTE
	jmp	LBB0_4
LBB0_5:
	movq	%r13, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H2C_TX_CMD_HDR_LEN,4,2         ## @H2C_TX_CMD_HDR_LEN
	.no_dead_strip	__rtl92s_fill_h2c_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92s_fill_h2c_cmd
__rtl92s_fill_h2c_cmd:                  ; @_rtl92s_fill_h2c_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	stp	x3, x5, [sp, #24]               ; 16-byte Folded Spill
	mov	x21, x4
	str	x1, [sp, #40]                   ; 8-byte Folded Spill
	mov	x24, #0
	mov	x20, #0
	mov	x22, #0
	subs	x8, x2, #1
	stp	x8, x0, [sp, #8]                ; 16-byte Folded Spill
	csinc	x8, x2, xzr, hi
	str	x8, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x26, _H2C_TX_CMD_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x26, [x26, _H2C_TX_CMD_HDR_LEN@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	mov	x24, x20
	mov	x20, x25
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cmp	x8, x22
	mov	x26, x21
	mov	x21, x28
	b.eq	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x25, [x26]
	ldr	x0, [x21, x22, lsl #3]
	mov	w1, #8
	bl	_N_BYTE_ALIGMENT
	add	x27, x25, w0, sxtw
	add	x25, x20, x27
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x25, x8
	b.hi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x27
	bl	_skb_put
	mov	x23, x0
	add	x28, x0, x20, lsl #3
	mov	x0, x28
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	lsl	x27, x22, #3
	ldr	w3, [x21, x27]
	mov	x0, x28
	mov	w1, #0
	mov	w2, #16
	bl	_SET_BITS_TO_LE_4BYTE
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w3, [x8, x27]
	mov	x0, x28
	mov	w1, #16
	mov	w2, #8
	bl	_SET_BITS_TO_LE_4BYTE
	ldr	x8, [x19]
	and	x3, x8, #0x7f
	str	x3, [x19]
	mov	x0, x28
	mov	w1, #24
	mov	w2, #7
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_SET_BITS_TO_LE_4BYTE
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	mov	x9, x21
	mov	x21, x26
	ldrsw	x8, [x26]
	add	x0, x28, x8, lsl #3
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	ldr	x1, [x8, x27]
	mov	x28, x9
	ldr	x2, [x9, x27]
	bl	_memcpy
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x22, x8
	b.hs	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x23, x24, lsl #3
	mov	w1, #31
	mov	w2, #1
	mov	w3, #1
	bl	_SET_BITS_TO_LE_4BYTE
	b	LBB0_1
LBB0_5:
	mov	x25, x20
LBB0_6:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_H2C_TX_CMD_HDR_LEN,4,2         ; @H2C_TX_CMD_HDR_LEN
	.no_dead_strip	__rtl92s_fill_h2c_cmd
.subsections_via_symbols
