	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7393_probe
_adv7393_probe:                         ## @adv7393_probe
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %edx
	addl	%edx, %edx
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l_info
	leaq	4(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	%rax, %r12
	movq	_ADV7393_POWER_MODE_REG_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movabsq	$137438953472, %rax             ## imm = 0x2000000000
	movq	%rax, (%r15)
	movq	_ADV7393_HD_MODE_REG6_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	_ADV7393_SD_MODE_REG1_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r15)
	movq	_ADV7393_SD_MODE_REG2_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	_ADV7393_COMPOSITE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	leaq	16(%r15), %r14
	movq	_adv7393_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_i2c_subdev_init
	addq	$8, %r15
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADV7393_BRIGHTNESS_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ADV7393_BRIGHTNESS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ADV7393_BRIGHTNESS_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	_adv7393_ctrl_ops@GOTPCREL(%rip), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_HUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADV7393_HUE_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ADV7393_HUE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ADV7393_HUE_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADV7393_GAIN_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ADV7393_GAIN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ADV7393_GAIN_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%r15, 16(%r12)
	movl	8(%r12), %ebx
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.6:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_setup
	movq	%r14, %rdi
	callq	_adv7393_initialize
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_10
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip found @ 0x%x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ADV7393_POWER_MODE_REG_DEFAULT,4,2 ## @ADV7393_POWER_MODE_REG_DEFAULT
	.comm	_ADV7393_HD_MODE_REG6_DEFAULT,4,2 ## @ADV7393_HD_MODE_REG6_DEFAULT
	.comm	_ADV7393_SD_MODE_REG1_DEFAULT,4,2 ## @ADV7393_SD_MODE_REG1_DEFAULT
	.comm	_ADV7393_SD_MODE_REG2_DEFAULT,4,2 ## @ADV7393_SD_MODE_REG2_DEFAULT
	.comm	_ADV7393_COMPOSITE_ID,4,2       ## @ADV7393_COMPOSITE_ID
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_adv7393_ops,4,2                ## @adv7393_ops
	.comm	_adv7393_ctrl_ops,4,2           ## @adv7393_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_ADV7393_BRIGHTNESS_MIN,4,2     ## @ADV7393_BRIGHTNESS_MIN
	.comm	_ADV7393_BRIGHTNESS_MAX,4,2     ## @ADV7393_BRIGHTNESS_MAX
	.comm	_ADV7393_BRIGHTNESS_DEF,4,2     ## @ADV7393_BRIGHTNESS_DEF
	.comm	_V4L2_CID_HUE,4,2               ## @V4L2_CID_HUE
	.comm	_ADV7393_HUE_MIN,4,2            ## @ADV7393_HUE_MIN
	.comm	_ADV7393_HUE_MAX,4,2            ## @ADV7393_HUE_MAX
	.comm	_ADV7393_HUE_DEF,4,2            ## @ADV7393_HUE_DEF
	.comm	_V4L2_CID_GAIN,4,2              ## @V4L2_CID_GAIN
	.comm	_ADV7393_GAIN_MIN,4,2           ## @ADV7393_GAIN_MIN
	.comm	_ADV7393_GAIN_MAX,4,2           ## @ADV7393_GAIN_MAX
	.comm	_ADV7393_GAIN_DEF,4,2           ## @ADV7393_GAIN_DEF
	.no_dead_strip	_adv7393_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function adv7393_probe
lCPI0_0:
	.long	0                               ; 0x0
	.long	32                              ; 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_adv7393_probe:                         ; @adv7393_probe
	.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	x20, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	lsl	w2, w8, #1
	ldr	x8, [x20, #8]
	ldr	w3, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_v4l_info
	add	x0, x20, #4
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh8:
	adrp	x8, _ADV7393_POWER_MODE_REG_DEFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADV7393_POWER_MODE_REG_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, lCPI0_0@PAGE
Lloh12:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x0]
Lloh13:
	adrp	x9, _ADV7393_HD_MODE_REG6_DEFAULT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ADV7393_HD_MODE_REG6_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
Lloh16:
	adrp	x8, _ADV7393_SD_MODE_REG1_DEFAULT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ADV7393_SD_MODE_REG1_DEFAULT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _ADV7393_SD_MODE_REG2_DEFAULT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _ADV7393_SD_MODE_REG2_DEFAULT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh22:
	adrp	x8, _ADV7393_COMPOSITE_ID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ADV7393_COMPOSITE_ID@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _V4L2_STD_NTSC@GOTPAGE
Lloh26:
	ldr	x9, [x9, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #24]
	add	x21, x0, #16
Lloh28:
	adrp	x2, _adv7393_ops@GOTPAGE
Lloh29:
	ldr	x2, [x2, _adv7393_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
	add	x20, x19, #8
	mov	x0, x20
	mov	w1, #3
	bl	_v4l2_ctrl_handler_init
Lloh30:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x8, _ADV7393_BRIGHTNESS_MIN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ADV7393_BRIGHTNESS_MIN@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
Lloh36:
	adrp	x8, _ADV7393_BRIGHTNESS_MAX@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ADV7393_BRIGHTNESS_MAX@GOTPAGEOFF]
Lloh38:
	ldr	w4, [x8]
Lloh39:
	adrp	x8, _ADV7393_BRIGHTNESS_DEF@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ADV7393_BRIGHTNESS_DEF@GOTPAGEOFF]
Lloh41:
	ldr	w6, [x8]
Lloh42:
	adrp	x22, _adv7393_ctrl_ops@GOTPAGE
Lloh43:
	ldr	x22, [x22, _adv7393_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
Lloh44:
	adrp	x8, _V4L2_CID_HUE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _V4L2_CID_HUE@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
Lloh47:
	adrp	x8, _ADV7393_HUE_MIN@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ADV7393_HUE_MIN@GOTPAGEOFF]
Lloh49:
	ldr	w3, [x8]
Lloh50:
	adrp	x8, _ADV7393_HUE_MAX@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ADV7393_HUE_MAX@GOTPAGEOFF]
Lloh52:
	ldr	w4, [x8]
Lloh53:
	adrp	x8, _ADV7393_HUE_DEF@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ADV7393_HUE_DEF@GOTPAGEOFF]
Lloh55:
	ldr	w6, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
Lloh56:
	adrp	x8, _V4L2_CID_GAIN@GOTPAGE
Lloh57:
	ldr	x8, [x8, _V4L2_CID_GAIN@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
Lloh59:
	adrp	x8, _ADV7393_GAIN_MIN@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ADV7393_GAIN_MIN@GOTPAGEOFF]
Lloh61:
	ldr	w3, [x8]
Lloh62:
	adrp	x8, _ADV7393_GAIN_MAX@GOTPAGE
Lloh63:
	ldr	x8, [x8, _ADV7393_GAIN_MAX@GOTPAGEOFF]
Lloh64:
	ldr	w4, [x8]
Lloh65:
	adrp	x8, _ADV7393_GAIN_DEF@GOTPAGE
Lloh66:
	ldr	x8, [x8, _ADV7393_GAIN_DEF@GOTPAGEOFF]
Lloh67:
	ldr	w6, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w5, #1
	bl	_v4l2_ctrl_new_std
	str	x20, [x19, #16]
	ldr	w19, [x19, #8]
	cbnz	w19, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_v4l2_ctrl_handler_setup
	mov	x0, x21
	bl	_adv7393_initialize
	mov	x19, x0
	cbz	w0, LBB0_8
LBB0_4:
	mov	x0, x20
	bl	_v4l2_ctrl_handler_free
	b	LBB0_8
LBB0_5:
Lloh68:
	adrp	x8, _ENODEV@GOTPAGE
Lloh69:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh70:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh71:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_8:
	mov	x0, x19
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdrp	Lloh11, Lloh13
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip found @ 0x%x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ADV7393_POWER_MODE_REG_DEFAULT,4,2 ; @ADV7393_POWER_MODE_REG_DEFAULT
	.comm	_ADV7393_HD_MODE_REG6_DEFAULT,4,2 ; @ADV7393_HD_MODE_REG6_DEFAULT
	.comm	_ADV7393_SD_MODE_REG1_DEFAULT,4,2 ; @ADV7393_SD_MODE_REG1_DEFAULT
	.comm	_ADV7393_SD_MODE_REG2_DEFAULT,4,2 ; @ADV7393_SD_MODE_REG2_DEFAULT
	.comm	_ADV7393_COMPOSITE_ID,4,2       ; @ADV7393_COMPOSITE_ID
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_adv7393_ops,4,2                ; @adv7393_ops
	.comm	_adv7393_ctrl_ops,4,2           ; @adv7393_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_ADV7393_BRIGHTNESS_MIN,4,2     ; @ADV7393_BRIGHTNESS_MIN
	.comm	_ADV7393_BRIGHTNESS_MAX,4,2     ; @ADV7393_BRIGHTNESS_MAX
	.comm	_ADV7393_BRIGHTNESS_DEF,4,2     ; @ADV7393_BRIGHTNESS_DEF
	.comm	_V4L2_CID_HUE,4,2               ; @V4L2_CID_HUE
	.comm	_ADV7393_HUE_MIN,4,2            ; @ADV7393_HUE_MIN
	.comm	_ADV7393_HUE_MAX,4,2            ; @ADV7393_HUE_MAX
	.comm	_ADV7393_HUE_DEF,4,2            ; @ADV7393_HUE_DEF
	.comm	_V4L2_CID_GAIN,4,2              ; @V4L2_CID_GAIN
	.comm	_ADV7393_GAIN_MIN,4,2           ; @ADV7393_GAIN_MIN
	.comm	_ADV7393_GAIN_MAX,4,2           ; @ADV7393_GAIN_MAX
	.comm	_ADV7393_GAIN_DEF,4,2           ; @ADV7393_GAIN_DEF
	.no_dead_strip	_adv7393_probe
.subsections_via_symbols
