	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdi_eeprom
_gdi_eeprom:                            ## @gdi_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	104(%rsi), %rbx
	movq	_gdi_tuner@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %rbx
	jae	LBB0_6
## %bb.1:
	movq	(%r15), %rax
	movq	104(%r12), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	leaq	L_.str.1(%rip), %rsi
	cmovneq	%rbx, %rsi
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:
	movq	(%r15), %rcx
	movq	104(%r12), %rax
	leaq	(%rax,%rax,2), %rdx
	movl	16(%rcx,%rdx,8), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	cmpq	$0, 8(%rcx,%rdx,8)
	je	LBB0_4
## %bb.3:
	movq	_CX88_RADIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	%eax, (%r14)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_gdi_tuner,8,3                  ## @gdi_tuner
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GDI: tuner=%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"unknown"

	.comm	_CX88_RADIO,4,2                 ## @CX88_RADIO
	.no_dead_strip	_gdi_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdi_eeprom
_gdi_eeprom:                            ; @gdi_eeprom
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x1, #104]
Lloh0:
	adrp	x21, _gdi_tuner@GOTPAGE
Lloh1:
	ldr	x21, [x21, _gdi_tuner@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	x22, x0
	b.hs	LBB0_4
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x20, #104]
	mov	w10, #24
	mul	x9, x9, x10
	ldr	x22, [x8, x9]
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	x22, #0
	csel	x1, x8, x22, eq
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	cbz	x22, LBB0_3
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x20, #104]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	w9, [x8, #16]
Lloh6:
	adrp	x10, _CX88_RADIO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CX88_RADIO@GOTPAGEOFF]
	ldr	x8, [x8, #8]
Lloh8:
	ldr	w10, [x10]
	cmp	x8, #0
	csel	w8, wzr, w10, eq
	stp	w8, w9, [x19]
LBB0_3:
	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
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	b	_pr_info
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_gdi_tuner,8,3                  ; @gdi_tuner
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GDI: tuner=%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"unknown"

	.comm	_CX88_RADIO,4,2                 ; @CX88_RADIO
	.no_dead_strip	_gdi_eeprom
.subsections_via_symbols
