	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa6752hs_probe
_saa6752hs_probe:                       ## @saa6752hs_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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	movq	%rax, %r15
	movl	$19, -84(%rbp)
	movl	(%r14), %edx
	addl	%edx, %edx
	movq	8(%r14), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l_info
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	addq	$24, %rdi
	movq	_saa6752hs_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rsi
	callq	_v4l2_i2c_subdev_init
	leaq	-84(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_i2c_master_send
	leaq	-80(%rbp), %rsi
	movq	%r14, %rdi
	movl	$48, %edx
	callq	_i2c_master_recv
	movq	_V4L2_IDENT_SAA6752HS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movl	-48(%rbp), %eax
	shll	$8, %eax
	orl	-44(%rbp), %eax
	movl	%eax, (%r15)
	movl	$0, 4(%r15)
	cmpl	$518, %eax                      ## imm = 0x206
	jne	LBB0_4
## %bb.3:
	movq	_V4L2_IDENT_SAA6752HS_AC3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movl	$1, 4(%r15)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_v4l_info
LBB0_4:
	movq	_param_defaults@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	$0, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip found @ 0x%x (%s)\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_saa6752hs_ops,4,2              ## @saa6752hs_ops
	.comm	_V4L2_IDENT_SAA6752HS,4,2       ## @V4L2_IDENT_SAA6752HS
	.comm	_V4L2_IDENT_SAA6752HS_AC3,4,2   ## @V4L2_IDENT_SAA6752HS_AC3
L_.str.1:                               ## @.str.1
	.asciz	"support AC-3\n"

	.comm	_param_defaults,4,2             ## @param_defaults
	.no_dead_strip	_saa6752hs_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa6752hs_probe
_saa6752hs_probe:                       ; @saa6752hs_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	mov	x20, x0
	mov	w8, #19
	str	w8, [sp, #20]
	ldr	w8, [x19]
	lsl	w8, w8, #1
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_v4l_info
	cbz	x20, LBB0_4
; %bb.1:
	add	x0, x20, #24
Lloh8:
	adrp	x2, _saa6752hs_ops@GOTPAGE
Lloh9:
	ldr	x2, [x2, _saa6752hs_ops@GOTPAGEOFF]
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
	mov	w21, #1
	add	x1, sp, #20
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_master_send
	add	x1, sp, #24
	mov	x0, x19
	mov	w2, #48
	bl	_i2c_master_recv
Lloh10:
	adrp	x8, _V4L2_IDENT_SAA6752HS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_IDENT_SAA6752HS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	ldp	w8, w9, [sp, #56]
	orr	w8, w9, w8, lsl #8
	stp	w8, wzr, [x20]
	cmp	w8, #518
	b.ne	LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _V4L2_IDENT_SAA6752HS_AC3@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_IDENT_SAA6752HS_AC3@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	str	w21, [x20, #4]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_v4l_info
LBB0_3:
	mov	w0, #0
Lloh18:
	adrp	x8, _param_defaults@GOTPAGE
Lloh19:
	ldr	x8, [x8, _param_defaults@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	str	xzr, [x20, #8]
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldur	x8, [x29, #-40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip found @ 0x%x (%s)\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_saa6752hs_ops,4,2              ; @saa6752hs_ops
	.comm	_V4L2_IDENT_SAA6752HS,4,2       ; @V4L2_IDENT_SAA6752HS
	.comm	_V4L2_IDENT_SAA6752HS_AC3,4,2   ; @V4L2_IDENT_SAA6752HS_AC3
l_.str.1:                               ; @.str.1
	.asciz	"support AC-3\n"

	.comm	_param_defaults,4,2             ; @param_defaults
	.no_dead_strip	_saa6752hs_probe
.subsections_via_symbols
