	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm_send_cmd
_fm_send_cmd:                           ## @fm_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rsi, %r12
	movq	_FM_INTERRUPT@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jle	LBB0_4
## %bb.1:
	movq	%r9, %r14
	movq	%rcx, %r13
	movq	%rdi, %rbx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	_FM_FW_DW_INPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%r13, %r13
	jne	LBB0_8
## %bb.2:
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_fmerr
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fmerr
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_FM_FW_DW_INPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	xorl	%r14d, %r14d
	testq	%r13, %r13
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %edi
	cmovel	%r14d, %edi
	movq	_FM_CMD_MSG_HDR_SIZE@GOTPCREL(%rip), %rdx
	addl	(%rdx), %edi
	testq	%rax, %rax
	cmovnel	%ecx, %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%rax, %rbx
	movq	_FM_FW_DW_INPROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_FM_INTTASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_14
LBB0_11:
	movq	_FM_CMD_MSG_HDR_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_skb_put
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leal	3(%r15), %ecx
	testq	%r13, %r13
	movq	_FM_PKT_LOGICAL_CHAN_NUMBER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 24(%rax)
	movl	$3, %edx
	cmovnel	%ecx, %edx
	movl	%edx, (%rax)
	movq	%r12, 16(%rax)
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 8(%rax)
	movl	%r15d, 4(%rax)
	movq	%rbx, %rdi
	callq	_fm_cb
	movq	%r12, 8(%rax)
	movq	%rbx, %r12
	testq	%r13, %r13
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_17
## %bb.12:
	movl	(%r13), %edi
	callq	_cpu_to_be16
	movl	%eax, (%r13)
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_fmerr
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_14:
	testq	%r13, %r13
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %r12
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_17
## %bb.15:
	movq	16(%r13), %rbx
	movq	%r12, %rdi
	callq	_fm_cb
	movq	%rbx, 8(%rax)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_16:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_skb_put_data
LBB0_17:
	movq	%r12, %rdi
	callq	_fm_cb
	movq	%rbx, (%rax)
	leaq	4(%r14), %rdi
	movq	%r12, %rsi
	callq	_skb_queue_tail
	movq	%r14, %rdi
	callq	_tasklet_schedule
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_INTERRUPT,8,3               ## @FM_INTERRUPT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid fm opcode - %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FM_FW_DW_INPROGRESS,4,2        ## @FM_FW_DW_INPROGRESS
L_.str.1:                               ## @.str.1
	.asciz	"Payload data is NULL during fw download\n"

	.comm	_FM_CMD_MSG_HDR_SIZE,4,2        ## @FM_CMD_MSG_HDR_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.2:                               ## @.str.2
	.asciz	"No memory to create new SKB\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_FM_INTTASK_RUNNING,4,2         ## @FM_INTTASK_RUNNING
	.comm	_FM_PKT_LOGICAL_CHAN_NUMBER,4,2 ## @FM_PKT_LOGICAL_CHAN_NUMBER
	.no_dead_strip	_fm_send_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm_send_cmd
_fm_send_cmd:                           ; @fm_send_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x1
Lloh0:
	adrp	x8, _FM_INTERRUPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM_INTERRUPT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.le	LBB0_4
; %bb.1:
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x24, x2
	mov	x19, x0
Lloh3:
	adrp	x27, _FM_FW_DW_INPROGRESS@GOTPAGE
Lloh4:
	ldr	x27, [x27, _FM_FW_DW_INPROGRESS@GOTPAGEOFF]
	ldr	w0, [x27]
	add	x26, x19, #8
	mov	x1, x26
	bl	_test_bit
	cbnz	x22, LBB0_8
; %bb.2:
	cbz	x0, LBB0_8
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	str	x23, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
LBB0_5:
	bl	_fmerr
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_8:
	ldr	w0, [x27]
	mov	x1, x26
	bl	_test_bit
Lloh11:
	adrp	x28, _FM_CMD_MSG_HDR_SIZE@GOTPAGE
Lloh12:
	ldr	x28, [x28, _FM_CMD_MSG_HDR_SIZE@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	x22, #0
	csel	w9, wzr, w21, eq
	add	w8, w8, w9
	cmp	x0, #0
	csel	w0, w8, w21, eq
Lloh13:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_alloc_skb
	cbz	x0, LBB0_13
; %bb.9:
	mov	x25, x0
	ldr	w0, [x27]
	mov	x1, x26
	bl	_test_bit
	cbz	x0, LBB0_11
; %bb.10:
Lloh16:
	adrp	x8, _FM_INTTASK_RUNNING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FM_INTTASK_RUNNING@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x26
	bl	_test_bit
	cbz	x0, LBB0_14
LBB0_11:
	ldr	w1, [x28]
	mov	x0, x25
	bl	_skb_put
Lloh19:
	adrp	x8, _FM_PKT_LOGICAL_CHAN_NUMBER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FM_PKT_LOGICAL_CHAN_NUMBER@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	add	w8, w21, #3
	cmp	x22, #0
	mov	w9, #3
	csel	w8, w9, w8, eq
	str	x23, [x0, #16]
	stp	w21, w24, [x0, #4]
	str	w8, [x0]
	mov	x0, x25
	bl	_fm_cb
	str	x23, [x0, #8]
	cbz	x22, LBB0_17
; %bb.12:
	ldr	w0, [x22]
	bl	_cpu_to_be16
	str	w0, [x22]
	b	LBB0_16
LBB0_13:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fmerr
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_14:
	cbz	x22, LBB0_17
; %bb.15:
	ldr	x23, [x22, #16]
	mov	x0, x25
	bl	_fm_cb
	str	x23, [x0, #8]
LBB0_16:
	mov	x0, x25
	mov	x1, x22
	mov	x2, x21
	bl	_skb_put_data
LBB0_17:
	mov	x0, x25
	bl	_fm_cb
	str	x20, [x0]
	add	x0, x19, #4
	mov	x1, x25
	bl	_skb_queue_tail
	mov	x0, x19
	bl	_tasklet_schedule
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_INTERRUPT,8,3               ; @FM_INTERRUPT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid fm opcode - %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FM_FW_DW_INPROGRESS,4,2        ; @FM_FW_DW_INPROGRESS
l_.str.1:                               ; @.str.1
	.asciz	"Payload data is NULL during fw download\n"

	.comm	_FM_CMD_MSG_HDR_SIZE,4,2        ; @FM_CMD_MSG_HDR_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.2:                               ; @.str.2
	.asciz	"No memory to create new SKB\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_FM_INTTASK_RUNNING,4,2         ; @FM_INTTASK_RUNNING
	.comm	_FM_PKT_LOGICAL_CHAN_NUMBER,4,2 ; @FM_PKT_LOGICAL_CHAN_NUMBER
	.no_dead_strip	_fm_send_cmd
.subsections_via_symbols
