	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7164_i2caddr_to_reglen      ## -- Begin function saa7164_i2caddr_to_reglen
	.p2align	4, 0x90
_saa7164_i2caddr_to_reglen:             ## @saa7164_i2caddr_to_reglen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SAA7164_MAX_UNITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	$-1, %eax
	testl	%r10d, %r10d
	jle	LBB0_7
## %bb.1:
	movq	8(%rdi), %r8
	movq	_saa7164_boards@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	(%r8), %rcx
	movq	(%r9,%rcx,8), %r11
	movq	_SAA7164_UNIT_UNDEFINED@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	shlq	$3, %r10
	leaq	(%r10,%r10,2), %r9
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rdx
	cmpq	%rdx, %r9
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r8, (%r11,%rdx)
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdi), %rcx
	cmpq	8(%r11,%rdx), %rcx
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%esi, 16(%r11,%rdx)
	jne	LBB0_2
## %bb.6:
	movl	20(%r11,%rdx), %eax
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAA7164_MAX_UNITS,4,2          ## @SAA7164_MAX_UNITS
	.comm	_saa7164_boards,8,3             ## @saa7164_boards
	.comm	_SAA7164_UNIT_UNDEFINED,8,3     ## @SAA7164_UNIT_UNDEFINED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7164_i2caddr_to_reglen      ; -- Begin function saa7164_i2caddr_to_reglen
	.p2align	2
_saa7164_i2caddr_to_reglen:             ; @saa7164_i2caddr_to_reglen
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SAA7164_MAX_UNITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAA7164_MAX_UNITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	x9, [x0, #8]
Lloh3:
	adrp	x10, _saa7164_boards@GOTPAGE
Lloh4:
	ldr	x10, [x10, _saa7164_boards@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x9, [x9]
	ldr	x9, [x10, x9, lsl #3]
Lloh6:
	adrp	x10, _SAA7164_UNIT_UNDEFINED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SAA7164_UNIT_UNDEFINED@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x9, x9, #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-16]
	cmp	x11, x10
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x0]
	ldur	x12, [x9, #-8]
	cmp	x11, x12
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x9]
	cmp	w11, w1
	b.ne	LBB0_2
; %bb.6:
	ldr	w0, [x9, #4]
	ret
LBB0_7:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SAA7164_MAX_UNITS,4,2          ; @SAA7164_MAX_UNITS
	.comm	_saa7164_boards,8,3             ; @saa7164_boards
	.comm	_SAA7164_UNIT_UNDEFINED,8,3     ; @SAA7164_UNIT_UNDEFINED
.subsections_via_symbols
