	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_v4l2_open
_em28xx_v4l2_open:                      ## @em28xx_v4l2_open
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_video_devdata
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_video_drvdata
	movq	%rax, %r14
	movl	(%rbx), %eax
	xorl	%r13d, %r13d
	cmpl	$128, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.3:
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_V4L2_BUF_TYPE_VBI_CAPTURE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r13d
LBB0_7:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_8
LBB0_6:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_8:
	movq	%rbx, %rdi
	callq	_video_device_node_name
	movq	_v4l2_type_names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r13d, %edx
	movl	(%rcx,%rdx,4), %edx
	movq	(%r14), %rcx
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_em28xx_videodbg
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	%rax, %rbx
	movq	%r14, 16(%rax)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movl	%r13d, 4(%rbx)
	movq	%rbx, (%r15)
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r13d
	jne	LBB0_12
## %bb.10:
	cmpq	$0, (%r14)
	jne	LBB0_12
## %bb.11:
	movq	_EM28XX_ANALOG_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_em28xx_set_mode
	movq	%r14, %rdi
	callq	_em28xx_set_alternate
	movq	%r14, %rdi
	callq	_em28xx_resolution_set
	movq	%r14, %rdi
	callq	_em28xx_wake_i2c
	movl	(%rbx), %eax
LBB0_12:
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_em28xx_videodbg
	leaq	24(%r14), %rdi
	movq	_tuner@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_s_radio@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	callq	_v4l2_device_call_all
LBB0_14:
	incq	(%r14)
	cmpq	$0, 16(%r14)
	jne	LBB0_17
## %bb.15:
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	callq	_em28xx_errdev
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_19
LBB0_17:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %r9d
	leaq	12(%rbx), %rdi
	leaq	12(%r14), %r15
	movl	(%r12), %r8d
	addq	$8, %r14
	subq	$8, %rsp
	movq	_em28xx_video_qops@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%edx, %edx
	movq	%r15, %rcx
	pushq	%r14
	pushq	%rbx
	pushq	$4
	callq	_videobuf_queue_vmalloc_init
	addq	$32, %rsp
	movq	%rbx, %rdi
	addq	$8, %rdi
	movq	_V4L2_BUF_TYPE_VBI_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_V4L2_FIELD_SEQ_TB@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	movq	_em28xx_vbi_qops@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	movq	%r15, %rcx
	pushq	%r14
	pushq	%rbx
	pushq	$4
	callq	_videobuf_queue_vmalloc_init
	addq	$32, %rsp
LBB0_19:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,4,2  ## @V4L2_BUF_TYPE_VBI_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"open dev=%s type=%s users=%d\n"

	.comm	_v4l2_type_names,8,3            ## @v4l2_type_names
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.1:                               ## @.str.1
	.asciz	"em28xx-video.c: Out of memory?!\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EM28XX_ANALOG_MODE,4,2         ## @EM28XX_ANALOG_MODE
L_.str.2:                               ## @.str.2
	.asciz	"video_open: setting radio device\n"

	.comm	_tuner,4,2                      ## @tuner
	.comm	_s_radio,4,2                    ## @s_radio
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_em28xx_video_qops,4,2          ## @em28xx_video_qops
	.comm	_em28xx_vbi_qops,4,2            ## @em28xx_vbi_qops
	.comm	_V4L2_FIELD_SEQ_TB,4,2          ## @V4L2_FIELD_SEQ_TB
	.no_dead_strip	_em28xx_v4l2_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_v4l2_open
_em28xx_v4l2_open:                      ; @em28xx_v4l2_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x0
	bl	_video_devdata
	mov	x20, x0
	mov	x0, x21
	bl	_video_drvdata
	mov	x19, x0
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_6
; %bb.3:
	mov	w22, #0
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	b	LBB0_7
LBB0_4:
	mov	w22, #0
Lloh3:
	adrp	x8, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
	b	LBB0_7
LBB0_5:
	mov	w24, #0
	mov	w22, #1
	b	LBB0_7
LBB0_6:
	mov	w22, #0
	mov	w24, #0
LBB0_7:
	mov	x0, x20
	bl	_video_device_node_name
                                        ; kill: def $w0 killed $w0 def $x0
Lloh6:
	adrp	x8, _v4l2_type_names@GOTPAGE
Lloh7:
	ldr	x8, [x8, _v4l2_type_names@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w8, [x8, w24, uxtw #2]
	stp	x8, x9, [sp, #8]
	str	x0, [sp]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_em28xx_videodbg
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.8:
	mov	x20, x0
	str	x19, [x0, #16]
	stp	w22, w24, [x0]
	str	x0, [x21]
Lloh14:
	adrp	x23, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh15:
	ldr	x23, [x23, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w24, w8
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x19]
	cbnz	x8, LBB0_11
; %bb.10:
Lloh16:
	adrp	x8, _EM28XX_ANALOG_MODE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EM28XX_ANALOG_MODE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_em28xx_set_mode
	mov	x0, x19
	bl	_em28xx_set_alternate
	mov	x0, x19
	bl	_em28xx_resolution_set
	mov	x0, x19
	bl	_em28xx_wake_i2c
	ldr	w22, [x20]
LBB0_11:
	cbz	w22, LBB0_13
; %bb.12:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_em28xx_videodbg
	add	x0, x19, #24
Lloh21:
	adrp	x8, _tuner@GOTPAGE
Lloh22:
	ldr	x8, [x8, _tuner@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _s_radio@GOTPAGE
Lloh25:
	ldr	x8, [x8, _s_radio@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	w1, #0
	bl	_v4l2_device_call_all
LBB0_13:
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	ldr	x8, [x19, #16]
Lloh27:
	adrp	x9, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh28:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh29:
	adrp	x10, _V4L2_FIELD_NONE@GOTPAGE
Lloh30:
	ldr	x10, [x10, _V4L2_FIELD_NONE@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w5, [x8]
	add	x0, x20, #12
	add	x21, x19, #12
	ldr	w4, [x23]
	add	x19, x19, #8
	str	x19, [sp]
Lloh31:
	adrp	x1, _em28xx_video_qops@GOTPAGE
Lloh32:
	ldr	x1, [x1, _em28xx_video_qops@GOTPAGEOFF]
	mov	x2, #0
	mov	x3, x21
	mov	w6, #4
	mov	x7, x20
	bl	_videobuf_queue_vmalloc_init
	add	x0, x20, #8
Lloh33:
	adrp	x8, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VBI_CAPTURE@GOTPAGEOFF]
Lloh35:
	ldr	w4, [x8]
Lloh36:
	adrp	x8, _V4L2_FIELD_SEQ_TB@GOTPAGE
Lloh37:
	ldr	x8, [x8, _V4L2_FIELD_SEQ_TB@GOTPAGEOFF]
Lloh38:
	ldr	w5, [x8]
	str	x19, [sp]
Lloh39:
	adrp	x1, _em28xx_vbi_qops@GOTPAGE
Lloh40:
	ldr	x1, [x1, _em28xx_vbi_qops@GOTPAGEOFF]
	mov	x2, #0
	mov	x3, x21
	mov	w6, #4
	mov	x7, x20
	bl	_videobuf_queue_vmalloc_init
	mov	w0, #0
	b	LBB0_15
LBB0_14:
Lloh41:
	adrp	x0, l_.str.1@PAGE
Lloh42:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_em28xx_errdev
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_V4L2_BUF_TYPE_VBI_CAPTURE,4,2  ; @V4L2_BUF_TYPE_VBI_CAPTURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open dev=%s type=%s users=%d\n"

	.comm	_v4l2_type_names,8,3            ; @v4l2_type_names
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.1:                               ; @.str.1
	.asciz	"em28xx-video.c: Out of memory?!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EM28XX_ANALOG_MODE,4,2         ; @EM28XX_ANALOG_MODE
l_.str.2:                               ; @.str.2
	.asciz	"video_open: setting radio device\n"

	.comm	_tuner,4,2                      ; @tuner
	.comm	_s_radio,4,2                    ; @s_radio
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_em28xx_video_qops,4,2          ; @em28xx_video_qops
	.comm	_em28xx_vbi_qops,4,2            ; @em28xx_vbi_qops
	.comm	_V4L2_FIELD_SEQ_TB,4,2          ; @V4L2_FIELD_SEQ_TB
	.no_dead_strip	_em28xx_v4l2_open
.subsections_via_symbols
