	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuan_mpc718_mt352_reqfw
_yuan_mpc718_mt352_reqfw:               ## @yuan_mpc718_mt352_reqfw
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rax
	movq	_FWFILE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	movq	(%rax), %rdx
	movq	%rsi, %rdi
	movq	%rbx, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_CX18_ERR
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_CX18_ERR
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_CX18_ERR
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r14), %rax
	movq	(%rax), %rdx
	leaq	-2(%rdx), %rax
	cmpq	$62, %rax
	ja	LBB0_4
## %bb.3:
	movl	%edx, %eax
	andl	$1, %eax
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_7
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_CX18_ERR
	movq	_EILSEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rdi
	callq	_release_firmware
	movq	$0, (%r14)
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	negl	%ebx
	movl	%ebx, %r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_FWFILE,8,3                     ## @FWFILE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to open firmware file %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"Firmware %s has a bad size: %lu bytes\n"

	.comm	_EILSEQ,4,2                     ## @EILSEQ
L_.str.2:                               ## @.str.2
	.asciz	"The MPC718 board variant with the MT352 DVB-T demodulator will not work without it\n"

L_.str.3:                               ## @.str.3
	.asciz	"Run 'linux/scripts/get_dvb_firmware mpc718' if you need the firmware\n"

	.no_dead_strip	_yuan_mpc718_mt352_reqfw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuan_mpc718_mt352_reqfw
_yuan_mpc718_mt352_reqfw:               ; @yuan_mpc718_mt352_reqfw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FWFILE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FWFILE@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x9]
	ldr	x2, [x8]
	mov	x0, x1
	mov	x1, x21
	bl	_request_firmware
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	x21, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CX18_ERR
LBB0_2:
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_CX18_ERR
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_CX18_ERR
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	ldr	x8, [x19]
	ldr	x8, [x8]
	sub	x9, x8, #2
	and	x10, x8, #0x1
	cmp	x9, #62
	ccmp	x10, #0, #0, ls
	b.eq	LBB0_7
; %bb.5:
	stp	x21, x8, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_CX18_ERR
Lloh11:
	adrp	x8, _EILSEQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EILSEQ@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
	ldr	x0, [x19]
	bl	_release_firmware
	str	xzr, [x19]
	cbz	w20, LBB0_3
; %bb.6:
	neg	w20, w20
	b	LBB0_2
LBB0_7:
	mov	w20, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FWFILE,8,3                     ; @FWFILE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to open firmware file %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"Firmware %s has a bad size: %lu bytes\n"

	.comm	_EILSEQ,4,2                     ; @EILSEQ
l_.str.2:                               ; @.str.2
	.asciz	"The MPC718 board variant with the MT352 DVB-T demodulator will not work without it\n"

l_.str.3:                               ; @.str.3
	.asciz	"Run 'linux/scripts/get_dvb_firmware mpc718' if you need the firmware\n"

	.no_dead_strip	_yuan_mpc718_mt352_reqfw
.subsections_via_symbols
