	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7113_init
_saa7113_init:                          ## @saa7113_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	movq	_saa7113_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SAA7146_GPIO_OUTHI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_saa7146_setgpio
	movl	$200, %edi
	callq	_msleep
	movq	%r15, %rdi
	movl	$74, %esi
	movl	$1, %edx
	movl	$8, %ecx
	callq	_i2c_writereg
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%rbx), %edx
	cmpl	$255, %edx
	je	LBB0_5
## %bb.3:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbx), %ecx
	movq	%r15, %rdi
	movl	$74, %esi
	callq	_i2c_writereg
	movl	(%rbx), %edx
	addq	$8, %rbx
	cmpl	$255, %edx
	jne	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	movl	$74, %esi
	movl	$31, %edx
	callq	_i2c_readreg
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_saa7113_tab,8,3                ## @saa7113_tab
	.comm	_SAA7146_GPIO_OUTHI,4,2         ## @SAA7146_GPIO_OUTHI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"saa7113 not found on KNC card\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"saa7113 detected and initializing\n"

L_.str.2:                               ## @.str.2
	.asciz	"saa7113  status=%02x\n"

	.no_dead_strip	_saa7113_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7113_init
_saa7113_init:                          ; @saa7113_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _saa7113_tab@GOTPAGE
Lloh1:
	ldr	x8, [x8, _saa7113_tab@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _SAA7146_GPIO_OUTHI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SAA7146_GPIO_OUTHI@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_saa7146_setgpio
	mov	w0, #200
	bl	_msleep
	mov	x0, x19
	mov	w1, #74
	mov	w2, #1
	mov	w3, #8
	bl	_i2c_writereg
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.1:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dprintk
	ldr	w2, [x20]
	cmp	w2, #255
	b.eq	LBB0_4
; %bb.2:
	add	x20, x20, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w3, [x20, #-4]
	mov	x0, x19
	mov	w1, #74
	bl	_i2c_writereg
	ldr	w2, [x20], #8
	cmp	w2, #255
	b.ne	LBB0_3
LBB0_4:
	mov	x0, x19
	mov	w1, #74
	mov	w2, #31
	bl	_i2c_readreg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_saa7113_tab,8,3                ; @saa7113_tab
	.comm	_SAA7146_GPIO_OUTHI,4,2         ; @SAA7146_GPIO_OUTHI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"saa7113 not found on KNC card\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"saa7113 detected and initializing\n"

l_.str.2:                               ; @.str.2
	.asciz	"saa7113  status=%02x\n"

	.no_dead_strip	_saa7113_init
.subsections_via_symbols
