	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_i2c_adapter_prepare    ## -- Begin function saa7146_i2c_adapter_prepare
	.p2align	4, 0x90
_saa7146_i2c_adapter_prepare:           ## @saa7146_i2c_adapter_prepare
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	callq	_DEB_EE
	movq	_MC1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASK_08@GOTPCREL(%rip), %rax
	movq	_MASK_24@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_saa7146_write
	movl	%r15d, 12(%rbx)
	movq	%rbx, %rdi
	callq	_saa7146_i2c_reset
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	leaq	8(%rbx), %rsi
	movq	%r14, %rdi
	callq	_i2c_set_adapdata
	movq	(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	_saa7146_algo@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	$0, 8(%r14)
	movq	_SAA7146_I2C_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_SAA7146_I2C_RETRIES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bitrate: 0x%08x\n"

	.comm	_MC1,4,2                        ## @MC1
	.comm	_MASK_08,4,2                    ## @MASK_08
	.comm	_MASK_24,4,2                    ## @MASK_24
	.comm	_saa7146_algo,4,2               ## @saa7146_algo
	.comm	_SAA7146_I2C_TIMEOUT,4,2        ## @SAA7146_I2C_TIMEOUT
	.comm	_SAA7146_I2C_RETRIES,4,2        ## @SAA7146_I2C_RETRIES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_i2c_adapter_prepare    ; -- Begin function saa7146_i2c_adapter_prepare
	.p2align	2
_saa7146_i2c_adapter_prepare:           ; @saa7146_i2c_adapter_prepare
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_DEB_EE
Lloh2:
	adrp	x8, _MC1@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MC1@GOTPAGEOFF]
Lloh4:
	adrp	x9, _MASK_08@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MASK_08@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x9, _MASK_24@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MASK_24@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x20
	bl	_saa7146_write
	str	w21, [x20, #12]
	mov	x0, x20
	bl	_saa7146_i2c_reset
	cbz	x19, LBB0_2
; %bb.1:
	add	x1, x20, #8
	mov	x0, x19
	bl	_i2c_set_adapdata
	ldr	x8, [x20]
	str	x8, [x19, #24]
Lloh11:
	adrp	x8, _saa7146_algo@GOTPAGE
Lloh12:
	ldr	x8, [x8, _saa7146_algo@GOTPAGEOFF]
	stp	xzr, x8, [x19, #8]
Lloh13:
	adrp	x8, _SAA7146_I2C_TIMEOUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SAA7146_I2C_TIMEOUT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _SAA7146_I2C_RETRIES@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SAA7146_I2C_RETRIES@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_2:
	mov	w0, #0
	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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bitrate: 0x%08x\n"

	.comm	_MC1,4,2                        ; @MC1
	.comm	_MASK_08,4,2                    ; @MASK_08
	.comm	_MASK_24,4,2                    ; @MASK_24
	.comm	_saa7146_algo,4,2               ; @saa7146_algo
	.comm	_SAA7146_I2C_TIMEOUT,4,2        ; @SAA7146_I2C_TIMEOUT
	.comm	_SAA7146_I2C_RETRIES,4,2        ; @SAA7146_I2C_RETRIES
.subsections_via_symbols
