	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_chip_ident
_vidioc_g_chip_ident:                   ## @vidioc_g_chip_ident
	.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	%rdx, %rbx
	movq	(%rsi), %r15
	movq	_V4L2_IDENT_NONE@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, (%rdx)
	movq	$0, 16(%rdx)
	leaq	8(%rdx), %rdi
	callq	_v4l2_chip_match_host
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_V4L2_IDENT_AU0828@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_4
LBB0_2:
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_g_chip_ident@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%rbx, %r8
	callq	_v4l2_device_call_all
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_IDENT_NONE,8,3            ## @V4L2_IDENT_NONE
	.comm	_V4L2_IDENT_AU0828,8,3          ## @V4L2_IDENT_AU0828
	.comm	_core,4,2                       ## @core
	.comm	_g_chip_ident,4,2               ## @g_chip_ident
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vidioc_g_chip_ident
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_g_chip_ident
_vidioc_g_chip_ident:                   ; @vidioc_g_chip_ident
	.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, x2
	ldr	x20, [x1]
Lloh0:
	adrp	x21, _V4L2_IDENT_NONE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _V4L2_IDENT_NONE@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [x2]
	str	xzr, [x2, #16]
	add	x0, x2, #8
	bl	_v4l2_chip_match_host
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
Lloh2:
	adrp	x8, _V4L2_IDENT_AU0828@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_IDENT_AU0828@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _core@GOTPAGE
Lloh6:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _g_chip_ident@GOTPAGE
Lloh9:
	ldr	x8, [x8, _g_chip_ident@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #0
	mov	x4, x19
	bl	_v4l2_device_call_all
	mov	w0, #0
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_IDENT_NONE,8,3            ; @V4L2_IDENT_NONE
	.comm	_V4L2_IDENT_AU0828,8,3          ; @V4L2_IDENT_AU0828
	.comm	_core,4,2                       ; @core
	.comm	_g_chip_ident,4,2               ; @g_chip_ident
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vidioc_g_chip_ident
.subsections_via_symbols
