	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fmc_send_cmd                   ## -- Begin function fmc_send_cmd
	.p2align	4, 0x90
_fmc_send_cmd:                          ## @fmc_send_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r13
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	16(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_init_completion
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	%r13, %rcx
	movl	%r15d, %r8d
	movq	%rbx, %r9
	callq	_fm_send_cmd
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_1
LBB0_16:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r15d, %r13d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_FM_DRV_TX_TIMEOUT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_wait_for_completion_timeout
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	cmpq	$0, 8(%r14)
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r14), %r15
	movq	$0, 8(%r14)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r15), %rbx
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_fmerr
	movq	%r15, %rdi
	callq	_kfree_skb
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_16
LBB0_2:
	movl	(%r15), %edi
	callq	_jiffies_to_msecs
	cltq
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_fmerr
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_16
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_fmerr
	movq	_EFAULT@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_16
LBB0_7:
	movq	16(%rbp), %r14
	testq	%r12, %r12
	je	LBB0_11
## %bb.8:
	testq	%r14, %r14
	je	LBB0_11
## %bb.9:
	movl	4(%rbx), %eax
	decl	%eax
	cmpl	%r13d, %eax
	jae	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_skb_pull
	movq	(%r15), %rsi
	movl	4(%rbx), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movl	4(%rbx), %eax
	jmp	LBB0_14
LBB0_11:
	testq	%r14, %r14
	je	LBB0_15
## %bb.12:
	cmpl	$0, 4(%rbx)
	jne	LBB0_15
## %bb.13:
	xorl	%eax, %eax
LBB0_14:
	movl	%eax, (%r14)
LBB0_15:
	movq	%r15, %rdi
	callq	_kfree_skb
	xorl	%r13d, %r13d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_DRV_TX_TIMEOUT,4,2          ## @FM_DRV_TX_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout(%d sec),didn't get regcompletion signal from RX tasklet\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
L_.str.1:                               ## @.str.1
	.asciz	"Response SKB is missing\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.2:                               ## @.str.2
	.asciz	"Received event pkt status(%d) is not zero\n"

	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fmc_send_cmd                   ; -- Begin function fmc_send_cmd
	.p2align	2
_fmc_send_cmd:                          ; @fmc_send_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x6
	mov	x20, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x23, x0
	add	x21, x0, #16
	mov	x0, x21
	bl	_init_completion
	mov	x0, x23
	mov	x1, x26
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	bl	_fm_send_cmd
	cbnz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x24, _FM_DRV_TX_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FM_DRV_TX_TIMEOUT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_wait_for_completion_timeout
	cbz	w0, LBB0_5
; %bb.2:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x23
	bl	_spin_lock_irqsave
	ldr	x21, [x23, #8]
	str	xzr, [x23, #8]
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	ldr	x23, [x21]
	ldr	w8, [x23]
	cbz	w8, LBB0_9
; %bb.4:
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.2@PAGE
Lloh3:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fmerr
	mov	x0, x21
	bl	_kfree_skb
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w0, [x24]
	bl	_jiffies_to_msecs
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fmerr
Lloh8:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fmerr
Lloh12:
	adrp	x8, _EFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	cbz	x20, LBB0_13
; %bb.10:
	cbz	x19, LBB0_13
; %bb.11:
	ldr	w8, [x23, #4]
	sub	w8, w8, #1
	cmp	w8, w22
	b.hs	LBB0_13
; %bb.12:
	mov	x0, x21
	mov	w1, #8
	bl	_skb_pull
	ldr	x1, [x21]
	ldr	w2, [x23, #4]
	mov	x0, x20
	bl	_memcpy
	ldr	w8, [x23, #4]
	b	LBB0_15
LBB0_13:
	cbz	x19, LBB0_16
; %bb.14:
	ldr	w8, [x23, #4]
	cbnz	w8, LBB0_16
LBB0_15:
	str	w8, [x19]
LBB0_16:
	mov	x0, x21
	bl	_kfree_skb
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_DRV_TX_TIMEOUT,4,2          ; @FM_DRV_TX_TIMEOUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout(%d sec),didn't get regcompletion signal from RX tasklet\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
l_.str.1:                               ; @.str.1
	.asciz	"Response SKB is missing\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.2:                               ; @.str.2
	.asciz	"Received event pkt status(%d) is not zero\n"

	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
