	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asc7621_detect
_asc7621_detect:                        ## @asc7621_detect
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_FIRST_CHIP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_LAST_CHIP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_2
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movslq	%ebx, %r14
	leaq	(,%r14,4), %rax
	leaq	(%rax,%rax,4), %r15
	decq	%r14
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_LAST_CHIP@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$20, %r15
	incq	%r14
	incl	%ebx
	cmpq	%rax, %r14
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_valid_address_for_chip
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_asc7621_chips@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	16(%rax,%r15), %esi
	movq	%r12, %rdi
	callq	_read_byte
	movl	%eax, %r13d
	movq	_asc7621_chips@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	12(%rax,%r15), %esi
	movq	%r12, %rdi
	callq	_read_byte
	movq	_asc7621_chips@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rcx,%r15), %r13d
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	4(%rcx,%r15), %eax
	jne	LBB0_7
## %bb.6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	8(%rcx,%r15), %esi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	movq	_asc7621_chips@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	8(%rax,%r15), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_FIRST_CHIP,4,2                 ## @FIRST_CHIP
	.comm	_LAST_CHIP,4,2                  ## @LAST_CHIP
	.comm	_asc7621_chips,8,3              ## @asc7621_chips
	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Matched %s at 0x%02x\n"

	.no_dead_strip	_asc7621_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asc7621_detect
_asc7621_detect:                        ; @asc7621_detect
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_check_functionality
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _FIRST_CHIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIRST_CHIP@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x25, _LAST_CHIP@GOTPAGE
Lloh7:
	ldr	x25, [x25, _LAST_CHIP@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w22, w8
	b.le	LBB0_4
LBB0_2:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	sxtw	x8, w22
	add	x9, x8, x8, lsl #2
	lsl	x24, x9, #2
	sub	x27, x8, #1
Lloh11:
	adrp	x26, _asc7621_chips@GOTPAGE
Lloh12:
	ldr	x26, [x26, _asc7621_chips@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x25]
	add	x24, x24, #20
	add	x27, x27, #1
	add	w22, w22, #1
	cmp	x27, x8
	b.ge	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x22
	bl	_valid_address_for_chip
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	add	x8, x8, x24
	ldr	w1, [x8, #16]
	mov	x0, x20
	bl	_read_byte
	mov	x23, x0
	ldr	x8, [x26]
	add	x8, x8, x24
	ldr	w1, [x8, #12]
	mov	x0, x20
	bl	_read_byte
	ldr	x8, [x26]
	ldr	w9, [x8, x24]
	cmp	w23, w9
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, x24
	ldr	w9, [x8, #4]
	cmp	w0, w9
	b.ne	LBB0_5
; %bb.9:
	ldr	w0, [x21]
	ldr	w1, [x8, #8]
Lloh13:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_strlcpy
	ldr	x8, [x26]
	add	x8, x8, x24
	ldr	w2, [x8, #8]
	ldr	w3, [x20]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_FIRST_CHIP,4,2                 ; @FIRST_CHIP
	.comm	_LAST_CHIP,4,2                  ; @LAST_CHIP
	.comm	_asc7621_chips,8,3              ; @asc7621_chips
	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Matched %s at 0x%02x\n"

	.no_dead_strip	_asc7621_detect
.subsections_via_symbols
