	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_default
_ivtv_default:                          ## @ivtv_default
	.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	%r8, %r15
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_fh2id
	movq	(%rax), %r14
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.1:
	cmpl	$139, %r13d
	jne	LBB0_5
## %bb.2:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leal	-139(%r13), %eax
	cmpl	$2, %eax
	jae	LBB0_7
## %bb.6:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movq	%r15, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ivtv_decoder_ioctls            ## TAILCALL
LBB0_7:
	cmpl	$128, %r13d
	jne	LBB0_12
## %bb.8:
	movl	(%r15), %ebx
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.9:
	testb	$1, %bl
	jne	LBB0_14
## %bb.10:
	testb	$2, %bl
	jne	LBB0_15
	jmp	LBB0_16
LBB0_12:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_13:
	cmpl	$0, 4(%r14)
	je	LBB0_16
LBB0_14:
	movq	%r14, %rdi
	callq	_ivtv_reset_ir_gpio
	testb	$2, %bl
	jne	LBB0_15
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_15:
	movl	(%r14), %edi
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_v4l2_subdev_call
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,8,3                      ## @EBUSY
	.comm	_core,4,2                       ## @core
	.comm	_reset,4,2                      ## @reset
	.comm	_ENOTTY,8,3                     ## @ENOTTY
	.no_dead_strip	_ivtv_default
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivtv_default
_ivtv_default:                          ; @ivtv_default
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x0
	mov	x0, x1
	bl	_fh2id
	ldr	x19, [x0]
	cbnz	w23, LBB0_5
; %bb.1:
	cmp	w21, #139
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_4:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	sub	w8, w21, #139
	cmp	w8, #2
	b.hs	LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ivtv_decoder_ioctls
LBB0_7:
	cmp	w21, #128
	b.ne	LBB0_11
; %bb.8:
	ldr	w20, [x20]
	cbz	w20, LBB0_12
; %bb.9:
	tbnz	w20, #0, LBB0_13
; %bb.10:
	tbnz	w20, #1, LBB0_14
	b	LBB0_15
LBB0_11:
Lloh2:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_3
LBB0_12:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_15
LBB0_13:
	mov	x0, x19
	bl	_ivtv_reset_ir_gpio
	tbz	w20, #1, LBB0_15
LBB0_14:
	ldr	w0, [x19]
Lloh4:
	adrp	x8, _core@GOTPAGE
Lloh5:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _reset@GOTPAGE
Lloh8:
	ldr	x8, [x8, _reset@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_v4l2_subdev_call
LBB0_15:
	mov	x0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,8,3                      ; @EBUSY
	.comm	_core,4,2                       ; @core
	.comm	_reset,4,2                      ; @reset
	.comm	_ENOTTY,8,3                     ; @ENOTTY
	.no_dead_strip	_ivtv_default
.subsections_via_symbols
