	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7164_unitid_name            ## -- Begin function saa7164_unitid_name
	.p2align	4, 0x90
_saa7164_unitid_name:                   ## @saa7164_unitid_name
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.1:
	movq	_SAA7164_MAX_UNITS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rax
	testl	%edx, %edx
	jle	LBB0_7
## %bb.2:
	movq	_saa7164_boards@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rdi), %rdi
	movq	(%rcx,%rdi,8), %rcx
	movq	_SAA7164_UNIT_UNDEFINED@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r8
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	xorl	%edi, %edi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$24, %rdi
	cmpq	%rdi, %rdx
	je	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r8, (%rcx,%rdi)
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rsi, 8(%rcx,%rdi)
	jne	LBB0_3
## %bb.6:
	movq	16(%rcx,%rdi), %rax
LBB0_7:
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str.1(%rip), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UNDEFINED"

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

	.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_unitid_name            ; -- Begin function saa7164_unitid_name
	.p2align	2
_saa7164_unitid_name:                   ; @saa7164_unitid_name
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_7
; %bb.1:
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_9
; %bb.2:
Lloh3:
	adrp	x9, _saa7164_boards@GOTPAGE
Lloh4:
	ldr	x9, [x9, _saa7164_boards@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x10, [x0]
	ldr	x9, [x9, x10, 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
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #24
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x9, #-16]
	cmp	x11, x10
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x11, [x9, #-8]
	cmp	x11, x1
	b.ne	LBB0_3
; %bb.6:
	ldr	x0, [x9]
	ret
LBB0_7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	ret
LBB0_9:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UNDEFINED"

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

	.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
