	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv7183_probe
_adv7183_probe:                         ## @adv7183_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movabsq	$2473901163216, %rax            ## imm = 0x240000002D0
	movq	%rax, -56(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	16(%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	16(%rbx), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l_info
	movq	8(%rbx), %r12
	testq	%r12, %r12
	je	LBB0_4
## %bb.5:
	leaq	8(%rbx), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movl	(%r12), %esi
	movl	%esi, (%rax)
	movl	4(%r12), %eax
	movl	%eax, 4(%r15)
	movq	_GPIOF_OUT_INIT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_devm_gpio_request_one
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	(%r15), %edx
	jmp	LBB0_9
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_10:
	movl	4(%r15), %esi
	movq	_GPIOF_OUT_INIT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	callq	_devm_gpio_request_one
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	4(%r15), %edx
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	24(%r15), %r12
	movq	_adv7183_ops@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_i2c_subdev_init
	movq	%r15, %r14
	addq	$20, %r14
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_adv7183_ctrl_ops@GOTPCREL(%rip), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	$-128, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32896, (%rsp)                  ## imm = 0x8080
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_HUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32896, (%rsp)                  ## imm = 0x8080
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%r14, 24(%r15)
	movl	20(%r15), %r13d
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_free
	movl	%r13d, %ebx
	jmp	LBB0_16
LBB0_14:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_ADV7183_COMPOSITE4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_ADV7183_8BIT_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movl	$10, %edi
	callq	_mdelay
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_gpio_set_value
	movl	$5, %edi
	callq	_mdelay
	movq	_adv7183_init_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_adv7183_writeregs
	movl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_adv7183_s_std
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_adv7183_set_fmt
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_setup
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_v4l2_ctrl_handler_free
	movl	%r15d, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip found @ 0x%02x (%s)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GPIOF_OUT_INIT_LOW,4,2         ## @GPIOF_OUT_INIT_LOW
L_.str.1:                               ## @.str.1
	.asciz	"ADV7183 Reset"

L_.str.2:                               ## @.str.2
	.asciz	"failed to request GPIO %d\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_GPIOF_OUT_INIT_HIGH,4,2        ## @GPIOF_OUT_INIT_HIGH
L_.str.3:                               ## @.str.3
	.asciz	"ADV7183 Output Enable"

	.comm	_adv7183_ops,4,2                ## @adv7183_ops
	.comm	_adv7183_ctrl_ops,4,2           ## @adv7183_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ## @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ## @V4L2_CID_SATURATION
	.comm	_V4L2_CID_HUE,4,2               ## @V4L2_CID_HUE
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_ADV7183_COMPOSITE4,4,2         ## @ADV7183_COMPOSITE4
	.comm	_ADV7183_8BIT_OUT,4,2           ## @ADV7183_8BIT_OUT
	.comm	_adv7183_init_regs,4,2          ## @adv7183_init_regs
	.no_dead_strip	_adv7183_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv7183_probe
_adv7183_probe:                         ; @adv7183_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	mov	x8, #720
	movk	x8, #576, lsl #32
	str	x8, [sp]
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	x0, [x0, #16]
Lloh3:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	lsl	w2, w8, #1
	ldr	x8, [x20, #16]
	ldr	w3, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_v4l_info
	mov	x21, x20
	ldr	x22, [x21, #8]!
	cbz	x22, LBB0_6
; %bb.2:
Lloh8:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x19, x0
	ldr	w1, [x22]
	str	w1, [x0]
	ldr	w8, [x22, #4]
	str	w8, [x0, #4]
Lloh11:
	adrp	x8, _GPIOF_OUT_INIT_LOW@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GPIOF_OUT_INIT_LOW@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_devm_gpio_request_one
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w2, [x19]
	b	LBB0_10
LBB0_5:
Lloh16:
	adrp	x8, _EIO@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	w1, [x19, #4]
Lloh22:
	adrp	x8, _GPIOF_OUT_INIT_HIGH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GPIOF_OUT_INIT_HIGH@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x3, l_.str.3@PAGE
Lloh26:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_devm_gpio_request_one
	cbz	x0, LBB0_13
; %bb.9:
	ldr	w2, [x19, #4]
LBB0_10:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_v4l_err
Lloh29:
	adrp	x8, _EBUSY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_12:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_13:
	add	x21, x19, #24
Lloh31:
	adrp	x2, _adv7183_ops@GOTPAGE
Lloh32:
	ldr	x2, [x2, _adv7183_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x20
	bl	_v4l2_i2c_subdev_init
	add	x20, x19, #20
	mov	x0, x20
	mov	w1, #4
	bl	_v4l2_ctrl_handler_init
Lloh33:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
Lloh36:
	adrp	x22, _adv7183_ctrl_ops@GOTPAGE
Lloh37:
	ldr	x22, [x22, _adv7183_ctrl_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #-128
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh38:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh39:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh41:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh42:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh43:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #1
	mov	w6, #32896
	bl	_v4l2_ctrl_new_std
Lloh44:
	adrp	x8, _V4L2_CID_HUE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _V4L2_CID_HUE@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #1
	mov	w6, #32896
	bl	_v4l2_ctrl_new_std
	str	x20, [x19, #24]
	ldr	w22, [x19, #20]
	cbnz	w22, LBB0_15
; %bb.14:
Lloh47:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh48:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
Lloh50:
	adrp	x9, _ADV7183_COMPOSITE4@GOTPAGE
Lloh51:
	ldr	x9, [x9, _ADV7183_COMPOSITE4@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	str	w9, [x19, #16]
Lloh53:
	adrp	x9, _ADV7183_8BIT_OUT@GOTPAGE
Lloh54:
	ldr	x9, [x9, _ADV7183_8BIT_OUT@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #8]
	mov	w0, #10
	bl	_mdelay
	ldr	w0, [x19]
	mov	w1, #1
	bl	_gpio_set_value
	mov	w0, #5
	bl	_mdelay
Lloh56:
	adrp	x8, _adv7183_init_regs@GOTPAGE
Lloh57:
	ldr	x8, [x8, _adv7183_init_regs@GOTPAGEOFF]
Lloh58:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_adv7183_writeregs
	ldr	w1, [x19, #8]
	mov	x0, x21
	bl	_adv7183_s_std
	mov	x2, sp
	mov	x0, x21
	mov	x1, #0
	bl	_adv7183_set_fmt
	mov	x0, x20
	bl	_v4l2_ctrl_handler_setup
	mov	x22, x0
	cbz	w0, LBB0_12
LBB0_15:
	mov	x0, x20
	bl	_v4l2_ctrl_handler_free
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip found @ 0x%02x (%s)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GPIOF_OUT_INIT_LOW,4,2         ; @GPIOF_OUT_INIT_LOW
l_.str.1:                               ; @.str.1
	.asciz	"ADV7183 Reset"

l_.str.2:                               ; @.str.2
	.asciz	"failed to request GPIO %d\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_GPIOF_OUT_INIT_HIGH,4,2        ; @GPIOF_OUT_INIT_HIGH
l_.str.3:                               ; @.str.3
	.asciz	"ADV7183 Output Enable"

	.comm	_adv7183_ops,4,2                ; @adv7183_ops
	.comm	_adv7183_ctrl_ops,4,2           ; @adv7183_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ; @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ; @V4L2_CID_SATURATION
	.comm	_V4L2_CID_HUE,4,2               ; @V4L2_CID_HUE
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_ADV7183_COMPOSITE4,4,2         ; @ADV7183_COMPOSITE4
	.comm	_ADV7183_8BIT_OUT,4,2           ; @ADV7183_8BIT_OUT
	.comm	_adv7183_init_regs,4,2          ; @adv7183_init_regs
	.no_dead_strip	_adv7183_probe
.subsections_via_symbols
