	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_i2c_eeprom
_saa7134_i2c_eeprom:                    ## @saa7134_i2c_eeprom
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_SAA7134_BOARD_MD7134@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_saa7134_i2c_eeprom_md7134_gate
LBB0_2:
	leaq	12(%rbx), %r15
	movl	$80, 12(%rbx)
	movb	$0, -41(%rbp)
	leaq	-41(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_i2c_master_send
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_i2c_master_recv
	cmpl	%r13d, %eax
	jne	LBB0_9
## %bb.4:
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %r15
	movl	%r13d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$16, %r12d
	movl	$16, %edx
	cmovll	%r12d, %edx
	leaq	(%r14,%rbx), %rcx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_info
	addq	$16, %rbx
	addl	$-16, %r12d
	cmpl	%r13d, %ebx
	jl	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_8:
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_10
LBB0_9:
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_warn
LBB0_10:
	movl	$-1, %eax
LBB0_11:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAA7134_BOARD_MD7134,8,3       ## @SAA7134_BOARD_MD7134
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Huh, no eeprom present (err=%d)?\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: i2c eeprom read error (err=%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"i2c eeprom %02x: %*ph\n"

	.no_dead_strip	_saa7134_i2c_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_i2c_eeprom
_saa7134_i2c_eeprom:                    ; @saa7134_i2c_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SAA7134_BOARD_MD7134@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SAA7134_BOARD_MD7134@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_saa7134_i2c_eeprom_md7134_gate
LBB0_2:
	mov	w8, #80
	mov	x22, x21
	str	w8, [x22, #12]!
	strb	wzr, [sp, #15]
	add	x1, sp, #15
	mov	x0, x22
	mov	w2, #1
	bl	_i2c_master_send
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_i2c_master_recv
	cmp	w0, w19
	b.ne	LBB0_9
; %bb.4:
	cmp	w19, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
	mov	w23, #16
	mov	x8, x19
Lloh3:
	adrp	x22, l_.str.2@PAGE
Lloh4:
	add	x22, x22, l_.str.2@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	subs	w24, w8, #16
	csel	w2, w8, w23, lt
	add	x8, x20, x21
	str	x8, [sp]
	mov	x0, x22
	mov	x1, x21
	bl	_pr_info
	add	x21, x21, #16
	mov	x8, x24
	cmp	w21, w19
	b.lt	LBB0_6
LBB0_7:
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	mov	x2, x0
	ldr	w1, [x21, #8]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	b	LBB0_10
LBB0_9:
	mov	x2, x0
	ldr	w1, [x21, #8]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SAA7134_BOARD_MD7134,8,3       ; @SAA7134_BOARD_MD7134
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Huh, no eeprom present (err=%d)?\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: i2c eeprom read error (err=%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"i2c eeprom %02x: %*ph\n"

	.no_dead_strip	_saa7134_i2c_eeprom
.subsections_via_symbols
