	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ics932s401_detect
_ics932s401_detect:                     ## @ics932s401_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_dbg
LBB0_8:
	movl	(%r14), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_3:
	movq	_ICS932S401_REG_VENDOR_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_word_data
	sarl	$8, %eax
	movq	_ICS932S401_REV_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %r12d
	sarl	%cl, %r12d
	movq	_ICS932S401_VENDOR_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_ICS932S401_VENDOR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.4:
	movq	_ICS932S401_REG_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_i2c_smbus_read_word_data
	sarl	$8, %eax
	movq	_ICS932S401_DEVICE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.5:
	movq	_ICS932S401_REV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_8
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_dev_info
	jmp	LBB0_8
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ICS932S401_REG_VENDOR_REV,4,2  ## @ICS932S401_REG_VENDOR_REV
	.comm	_ICS932S401_REV_SHIFT,4,2       ## @ICS932S401_REV_SHIFT
	.comm	_ICS932S401_VENDOR_MASK,4,2     ## @ICS932S401_VENDOR_MASK
	.comm	_ICS932S401_VENDOR,4,2          ## @ICS932S401_VENDOR
	.comm	_ICS932S401_REG_DEVICE,4,2      ## @ICS932S401_REG_DEVICE
	.comm	_ICS932S401_DEVICE,4,2          ## @ICS932S401_DEVICE
	.comm	_ICS932S401_REV,4,2             ## @ICS932S401_REV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown revision %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"detection forced\n"

L_.str.2:                               ## @.str.2
	.asciz	"ics932s401"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.no_dead_strip	_ics932s401_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ics932s401_detect
_ics932s401_detect:                     ; @ics932s401_detect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x20, [x0]
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, x20
	bl	_i2c_check_functionality
	cbz	w0, LBB0_8
; %bb.1:
	cmp	w22, #0
	b.le	LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_3:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_9
LBB0_4:
Lloh10:
	adrp	x8, _ICS932S401_REG_VENDOR_REV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICS932S401_REG_VENDOR_REV@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_word_data
	asr	w22, w0, #8
Lloh13:
	adrp	x8, _ICS932S401_VENDOR_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ICS932S401_VENDOR_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh16:
	adrp	x9, _ICS932S401_VENDOR@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ICS932S401_VENDOR@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.5:
Lloh19:
	adrp	x8, _ICS932S401_REV_SHIFT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ICS932S401_REV_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
Lloh22:
	adrp	x8, _ICS932S401_REG_DEVICE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ICS932S401_REG_DEVICE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_word_data
Lloh25:
	adrp	x8, _ICS932S401_DEVICE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ICS932S401_DEVICE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w8, w0, asr #8
	b.ne	LBB0_8
; %bb.6:
	asr	w2, w22, w23
Lloh28:
	adrp	x8, _ICS932S401_REV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ICS932S401_REV@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w2, w8
	b.eq	LBB0_3
; %bb.7:
Lloh31:
	adrp	x1, l_.str@PAGE
Lloh32:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_3
LBB0_8:
Lloh33:
	adrp	x8, _ENODEV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ICS932S401_REG_VENDOR_REV,4,2  ; @ICS932S401_REG_VENDOR_REV
	.comm	_ICS932S401_REV_SHIFT,4,2       ; @ICS932S401_REV_SHIFT
	.comm	_ICS932S401_VENDOR_MASK,4,2     ; @ICS932S401_VENDOR_MASK
	.comm	_ICS932S401_VENDOR,4,2          ; @ICS932S401_VENDOR
	.comm	_ICS932S401_REG_DEVICE,4,2      ; @ICS932S401_REG_DEVICE
	.comm	_ICS932S401_DEVICE,4,2          ; @ICS932S401_DEVICE
	.comm	_ICS932S401_REV,4,2             ; @ICS932S401_REV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown revision %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"detection forced\n"

l_.str.2:                               ; @.str.2
	.asciz	"ics932s401"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.no_dead_strip	_ics932s401_detect
.subsections_via_symbols
