	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_firmware_set_h2c_cmd
__rtl92s_firmware_set_h2c_cmd:          ## @_rtl92s_firmware_set_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	%rdx, -64(%rbp)
	callq	_rtl_priv
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	movq	_H2C_WOWLAN_UPDATE_IV_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$8, -44(%rbp)
	jmp	LBB0_8
LBB0_4:
	movq	_H2C_WOWLAN_UPDATE_GTK_CMD@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_H2C_WOWLAN_FW_OFFLOAD@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_H2C_SETPWRMODE_CMD@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movq	_H2C_JOINBSSRPT_CMD@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$4, -44(%rbp)
LBB0_8:
	movq	_MAX_TRANSMIT_BUFFER_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$1, %r12d
	leaq	-44(%rbp), %rdx
	movl	$1, %esi
	callq	__rtl92s_get_h2c_cmdlen
	movl	%eax, %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_TXCMD_QUEUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_DESC_PACKET_TYPE_NORMAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	$0, (%rax)
	movl	(%r15), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %rcx
	leaq	-44(%rbp), %r8
	leaq	-64(%rbp), %r9
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	__rtl92s_fill_h2c_cmd
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	__rtl92s_cmd_send_packet
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_TXCMD_QUEUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r13, %rdi
	callq	*(%rax)
	jmp	LBB0_11
LBB0_9:
	xorl	%r12d, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_H2C_SETPWRMODE_CMD,4,2         ## @H2C_SETPWRMODE_CMD
	.comm	_H2C_JOINBSSRPT_CMD,4,2         ## @H2C_JOINBSSRPT_CMD
	.comm	_H2C_WOWLAN_UPDATE_GTK_CMD,4,2  ## @H2C_WOWLAN_UPDATE_GTK_CMD
	.comm	_H2C_WOWLAN_UPDATE_IV_CMD,4,2   ## @H2C_WOWLAN_UPDATE_IV_CMD
	.comm	_H2C_WOWLAN_FW_OFFLOAD,4,2      ## @H2C_WOWLAN_FW_OFFLOAD
	.comm	_MAX_TRANSMIT_BUFFER_SIZE,4,2   ## @MAX_TRANSMIT_BUFFER_SIZE
	.comm	_TXCMD_QUEUE,4,2                ## @TXCMD_QUEUE
	.comm	_DESC_PACKET_TYPE_NORMAL,4,2    ## @DESC_PACKET_TYPE_NORMAL
	.no_dead_strip	__rtl92s_firmware_set_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_firmware_set_h2c_cmd
__rtl92s_firmware_set_h2c_cmd:          ; @_rtl92s_firmware_set_h2c_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x19, x0
	str	x2, [sp, #8]
	bl	_rtl_priv
	mov	x20, x0
	mov	x0, x19
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x21, x0
	str	xzr, [sp]
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _H2C_WOWLAN_UPDATE_IV_CMD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H2C_WOWLAN_UPDATE_IV_CMD@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #4]
	mov	w8, #8
	b	LBB0_8
LBB0_3:
Lloh5:
	adrp	x8, _H2C_WOWLAN_UPDATE_GTK_CMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H2C_WOWLAN_UPDATE_GTK_CMD@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh7:
	adrp	x8, _H2C_WOWLAN_FW_OFFLOAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _H2C_WOWLAN_FW_OFFLOAD@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _H2C_SETPWRMODE_CMD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _H2C_SETPWRMODE_CMD@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _H2C_JOINBSSRPT_CMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _H2C_JOINBSSRPT_CMD@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	str	w8, [sp, #4]
	mov	w8, #4
LBB0_8:
	str	w8, [sp]
LBB0_9:
Lloh13:
	adrp	x22, _MAX_TRANSMIT_BUFFER_SIZE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _MAX_TRANSMIT_BUFFER_SIZE@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x2, sp
	mov	w1, #1
	bl	__rtl92s_get_h2c_cmdlen
	bl	_dev_alloc_skb
	cbz	x0, LBB0_11
; %bb.10:
	mov	x23, x0
	ldr	x8, [x0]
Lloh15:
	adrp	x24, _TXCMD_QUEUE@GOTPAGE
Lloh16:
	ldr	x24, [x24, _TXCMD_QUEUE@GOTPAGEOFF]
	ldr	w9, [x24]
	str	w9, [x8, #8]
Lloh17:
	adrp	x9, _DESC_PACKET_TYPE_NORMAL@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DESC_PACKET_TYPE_NORMAL@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	wzr, w9, [x8]
	ldr	w1, [x22]
	mov	w22, #1
	add	x3, sp, #4
	mov	x4, sp
	add	x5, sp, #8
	mov	w2, #1
	mov	x6, x21
	bl	__rtl92s_fill_h2c_cmd
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	__rtl92s_cmd_send_packet
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x24]
	mov	x0, x19
	blr	x8
	b	LBB0_12
LBB0_11:
	mov	w22, #0
LBB0_12:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_H2C_SETPWRMODE_CMD,4,2         ; @H2C_SETPWRMODE_CMD
	.comm	_H2C_JOINBSSRPT_CMD,4,2         ; @H2C_JOINBSSRPT_CMD
	.comm	_H2C_WOWLAN_UPDATE_GTK_CMD,4,2  ; @H2C_WOWLAN_UPDATE_GTK_CMD
	.comm	_H2C_WOWLAN_UPDATE_IV_CMD,4,2   ; @H2C_WOWLAN_UPDATE_IV_CMD
	.comm	_H2C_WOWLAN_FW_OFFLOAD,4,2      ; @H2C_WOWLAN_FW_OFFLOAD
	.comm	_MAX_TRANSMIT_BUFFER_SIZE,4,2   ; @MAX_TRANSMIT_BUFFER_SIZE
	.comm	_TXCMD_QUEUE,4,2                ; @TXCMD_QUEUE
	.comm	_DESC_PACKET_TYPE_NORMAL,4,2    ; @DESC_PACKET_TYPE_NORMAL
	.no_dead_strip	__rtl92s_firmware_set_h2c_cmd
.subsections_via_symbols
