	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_download_firmware      ## -- Begin function dvb_usb_download_firmware
	.p2align	4, 0x90
_dvb_usb_download_firmware:             ## @dvb_usb_download_firmware
	.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, %rbx
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	movl	16(%rsi), %esi
	leaq	-32(%rbp), %rdi
	movq	%r14, %rdx
	callq	_request_firmware
	movl	16(%rbx), %esi
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_10
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_info
	movl	(%rbx), %edx
	leal	-129(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_3
## %bb.11:
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_usb_cypress_load_firmware
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_3:
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.4:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	*%rax
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	subl	(%rax), %r15d
LBB0_9:
	movq	-32(%rbp), %rdi
	callq	_release_firmware
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"did not find the firmware file '%s' (status %d). You can use <kernel_dir>/scripts/get_dvb_firmware to get the firmware"

L_.str.1:                               ## @.str.1
	.asciz	"downloading firmware from file '%s'"

L_.str.2:                               ## @.str.2
	.asciz	"BUG: driver didn't specified a download_firmware-callback, although it claims to have a DEVICE_SPECIFIC one."

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_download_firmware      ; -- Begin function dvb_usb_download_firmware
	.p2align	2
_dvb_usb_download_firmware:             ; @dvb_usb_download_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x1
	mov	x19, x0
	str	xzr, [sp, #24]
	ldr	w1, [x1, #16]
	add	x0, sp, #24
	mov	x2, x19
	bl	_request_firmware
	ldr	w1, [x21, #16]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	stp	x1, x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
	b	LBB0_10
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_info
	ldr	w2, [x21]
	sub	w8, w2, #129
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.3:
	ldr	x1, [sp, #24]
	mov	x0, x19
	bl	_usb_cypress_load_firmware
	mov	x20, x0
	b	LBB0_9
LBB0_4:
	cmp	w2, #128
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x1, [sp, #24]
	mov	x0, x19
	blr	x8
	mov	x20, x0
	b	LBB0_9
LBB0_7:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_err
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	ldr	x0, [sp, #24]
	bl	_release_firmware
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"did not find the firmware file '%s' (status %d). You can use <kernel_dir>/scripts/get_dvb_firmware to get the firmware"

l_.str.1:                               ; @.str.1
	.asciz	"downloading firmware from file '%s'"

l_.str.2:                               ; @.str.2
	.asciz	"BUG: driver didn't specified a download_firmware-callback, although it claims to have a DEVICE_SPECIFIC one."

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
