	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function urb_complete_bulk
_urb_complete_bulk:                     ## @urb_complete_bulk
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	movq	(%rdi), %r14
	cmpl	$0, (%r14)
	movq	8(%rbx), %rax
	je	LBB0_2
## %bb.1:
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	16(%rbx), %r12
	movl	(%rbx), %r15d
	movq	%r14, %rsi
	callq	_get_video_frame
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	cmpl	4(%rbx), %r15d
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_copy_vbi_video_data
	jmp	LBB0_7
LBB0_2:
	movq	_EPROTO@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	je	LBB0_7
	jmp	LBB0_8
LBB0_6:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_check_trailer
LBB0_7:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_log                            ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROTO,8,3                     ## @EPROTO
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" submit failed: error %d"

	.no_dead_strip	_urb_complete_bulk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function urb_complete_bulk
_urb_complete_bulk:                     ; @urb_complete_bulk
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x0, [x0, #24]
	ldr	x20, [x0]
	ldr	w9, [x20]
	ldr	x8, [x19, #8]
	cmp	w9, #0
	ccmp	x8, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _EPROTO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EPROTO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmn	x8, x9
	b.eq	LBB0_6
	b	LBB0_8
LBB0_2:
	ldr	x22, [x19, #16]
	ldr	w21, [x19]
	mov	x1, x20
	bl	_get_video_frame
	cbz	w0, LBB0_6
; %bb.3:
	ldr	w8, [x19, #4]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	cmp	w21, w8
	b.ne	LBB0_5
; %bb.4:
	bl	_copy_vbi_video_data
	b	LBB0_6
LBB0_5:
	bl	_check_trailer
LBB0_6:
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usb_submit_urb
	cbz	w0, LBB0_8
; %bb.7:
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_log
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROTO,8,3                     ; @EPROTO
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" submit failed: error %d"

	.no_dead_strip	_urb_complete_bulk
.subsections_via_symbols
