	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7164_card_setup             ## -- Begin function saa7164_card_setup
	.p2align	4, 0x90
_saa7164_card_setup:                    ## @saa7164_card_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	_saa7164_card_setup.eeprom(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_saa7164_api_read_eeprom
	testq	%rax, %rax
	js	LBB0_3
LBB0_2:
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$10, %eax
	ja	LBB0_3
## %bb.4:
	leaq	_saa7164_card_setup.eeprom(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hauppauge_eeprom               ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_saa7164_card_setup.eeprom,1024,4 ## @saa7164_card_setup.eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7164_card_setup             ; -- Begin function saa7164_card_setup
	.p2align	2
_saa7164_card_setup:                    ; @saa7164_card_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x8, [x0, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, _saa7164_card_setup.eeprom@PAGE
Lloh1:
	add	x1, x1, _saa7164_card_setup.eeprom@PAGEOFF
	mov	x0, x19
	mov	w2, #1024
	bl	_saa7164_api_read_eeprom
	tbnz	x0, #63, LBB0_4
LBB0_2:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #10
	b.hi	LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, _saa7164_card_setup.eeprom@PAGE
Lloh3:
	add	x1, x1, _saa7164_card_setup.eeprom@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hauppauge_eeprom
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_saa7164_card_setup.eeprom,1024,2 ; @saa7164_card_setup.eeprom
.subsections_via_symbols
