	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivtv_g_chip_ident
_ivtv_g_chip_ident:                     ## @ivtv_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movq	(%rsi), %r14
	movq	_V4L2_IDENT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdx)
	movq	$0, 16(%rdx)
	movq	(%rdx), %rax
	movq	_V4L2_CHIP_MATCH_HOST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_v4l2_chip_match_host
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.2:
	cmpq	$0, (%r14)
	jne	LBB0_3
## %bb.4:
	movq	_V4L2_IDENT_CX23416@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_6:
	movq	_V4L2_CHIP_MATCH_I2C_DRIVER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.7:
	movq	_V4L2_CHIP_MATCH_I2C_ADDR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_10:
	movq	_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_chip_ident@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ivtv_call_all_err              ## TAILCALL
LBB0_3:
	movq	_V4L2_IDENT_CX23415@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_IDENT_NONE,4,2            ## @V4L2_IDENT_NONE
	.comm	_V4L2_CHIP_MATCH_HOST,8,3       ## @V4L2_CHIP_MATCH_HOST
	.comm	_V4L2_IDENT_CX23415,4,2         ## @V4L2_IDENT_CX23415
	.comm	_V4L2_IDENT_CX23416,4,2         ## @V4L2_IDENT_CX23416
	.comm	_V4L2_CHIP_MATCH_I2C_DRIVER,8,3 ## @V4L2_CHIP_MATCH_I2C_DRIVER
	.comm	_V4L2_CHIP_MATCH_I2C_ADDR,8,3   ## @V4L2_CHIP_MATCH_I2C_ADDR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_core,4,2                       ## @core
	.comm	_g_chip_ident,4,2               ## @g_chip_ident
	.no_dead_strip	_ivtv_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 ivtv_g_chip_ident
_ivtv_g_chip_ident:                     ; @ivtv_g_chip_ident
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	x20, [x1]
Lloh0:
	adrp	x8, _V4L2_IDENT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_IDENT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x2, #8]
	str	xzr, [x2, #16]
	ldr	x8, [x2]
Lloh3:
	adrp	x9, _V4L2_CHIP_MATCH_HOST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_CHIP_MATCH_HOST@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_v4l2_chip_match_host
	cbz	x0, LBB0_6
; %bb.2:
	mov	w0, #0
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _V4L2_IDENT_CX23415@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_IDENT_CX23415@GOTPAGEOFF]
Lloh8:
	adrp	x10, _V4L2_IDENT_CX23416@GOTPAGE
Lloh9:
	ldr	x10, [x10, _V4L2_IDENT_CX23416@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x19, #8]
	b	LBB0_6
LBB0_3:
Lloh10:
	adrp	x9, _V4L2_CHIP_MATCH_I2C_DRIVER@GOTPAGE
Lloh11:
	ldr	x9, [x9, _V4L2_CHIP_MATCH_I2C_DRIVER@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _V4L2_CHIP_MATCH_I2C_ADDR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _V4L2_CHIP_MATCH_I2C_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
Lloh16:
	adrp	x8, _core@GOTPAGE
Lloh17:
	ldr	x8, [x8, _core@GOTPAGEOFF]
Lloh18:
	adrp	x9, _g_chip_ident@GOTPAGE
Lloh19:
	ldr	x9, [x9, _g_chip_ident@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	ldr	w2, [x9]
	mov	x0, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ivtv_call_all_err
LBB0_5:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_IDENT_NONE,4,2            ; @V4L2_IDENT_NONE
	.comm	_V4L2_CHIP_MATCH_HOST,8,3       ; @V4L2_CHIP_MATCH_HOST
	.comm	_V4L2_IDENT_CX23415,4,2         ; @V4L2_IDENT_CX23415
	.comm	_V4L2_IDENT_CX23416,4,2         ; @V4L2_IDENT_CX23416
	.comm	_V4L2_CHIP_MATCH_I2C_DRIVER,8,3 ; @V4L2_CHIP_MATCH_I2C_DRIVER
	.comm	_V4L2_CHIP_MATCH_I2C_ADDR,8,3   ; @V4L2_CHIP_MATCH_I2C_ADDR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_core,4,2                       ; @core
	.comm	_g_chip_ident,4,2               ; @g_chip_ident
	.no_dead_strip	_ivtv_g_chip_ident
.subsections_via_symbols
