	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_adapter_frontend_init  ## -- Begin function dvb_usb_adapter_frontend_init
	.p2align	4, 0x90
_dvb_usb_adapter_frontend_init:         ## @dvb_usb_adapter_frontend_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_3
LBB0_8:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_err
	jmp	LBB0_9
LBB0_1:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movl	44(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_err
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.4:
	movl	4(%rsi), %eax
	movl	%eax, 40(%rbx)
	movq	_dvb_usb_fe_wakeup@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi)
	movl	(%rsi), %eax
	movl	%eax, 36(%rbx)
	movq	_dvb_usb_fe_sleep@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	leaq	32(%rbx), %rdi
	callq	_dvb_register_frontend
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_err
	movq	24(%rbx), %rdi
	callq	_dvb_frontend_detach
	movq	$0, 24(%rbx)
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_6:
	movq	16(%rbx), %rcx
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rcx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"strange: '%s' #%d doesn't want to attach a frontend."

	.comm	_dvb_usb_fe_wakeup,4,2          ## @dvb_usb_fe_wakeup
	.comm	_dvb_usb_fe_sleep,4,2           ## @dvb_usb_fe_sleep
L_.str.1:                               ## @.str.1
	.asciz	"Frontend registration failed."

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"no frontend was attached by '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dvb_usb_adapter_frontend_init  ; -- Begin function dvb_usb_adapter_frontend_init
	.p2align	2
_dvb_usb_adapter_frontend_init:         ; @dvb_usb_adapter_frontend_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	blr	x8
	cbz	x0, LBB0_7
LBB0_2:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w8, [x8]
	ldr	w9, [x19, #44]
	stp	x8, x9, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
LBB0_4:
	bl	_err
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_2
; %bb.8:
Lloh4:
	adrp	x8, _dvb_usb_fe_wakeup@GOTPAGE
Lloh5:
	ldr	x8, [x8, _dvb_usb_fe_wakeup@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	d0, [x1]
	str	w8, [x1, #4]
	stur	d0, [x19, #36]
Lloh7:
	adrp	x8, _dvb_usb_fe_sleep@GOTPAGE
Lloh8:
	ldr	x8, [x8, _dvb_usb_fe_sleep@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x1]
	add	x0, x19, #32
	bl	_dvb_register_frontend
	cbz	x0, LBB0_10
; %bb.9:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
	ldr	x0, [x19, #24]
	bl	_dvb_frontend_detach
	str	xzr, [x19, #24]
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_10:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.11:
	mov	x0, x19
	blr	x8
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"strange: '%s' #%d doesn't want to attach a frontend."

	.comm	_dvb_usb_fe_wakeup,4,2          ; @dvb_usb_fe_wakeup
	.comm	_dvb_usb_fe_sleep,4,2           ; @dvb_usb_fe_sleep
l_.str.1:                               ; @.str.1
	.asciz	"Frontend registration failed."

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"no frontend was attached by '%s'"

.subsections_via_symbols
