	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	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:
	movq	_ICS932S401_REG_VENDOR_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %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.3:
	movq	_ICS932S401_REG_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_word_data
	sarl	$8, %eax
	movq	_ICS932S401_DEVICE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.4:
	movq	_ICS932S401_REV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_dev_info
LBB0_6:
	movl	(%r14), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_strlcpy
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	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	"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, 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_6
; %bb.1:
Lloh3:
	adrp	x8, _ICS932S401_REG_VENDOR_REV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICS932S401_REG_VENDOR_REV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_word_data
	asr	w22, w0, #8
Lloh6:
	adrp	x8, _ICS932S401_VENDOR_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICS932S401_VENDOR_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh9:
	adrp	x9, _ICS932S401_VENDOR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ICS932S401_VENDOR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.2:
Lloh12:
	adrp	x8, _ICS932S401_REV_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ICS932S401_REV_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w23, [x8]
Lloh15:
	adrp	x8, _ICS932S401_REG_DEVICE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ICS932S401_REG_DEVICE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_i2c_smbus_read_word_data
Lloh18:
	adrp	x8, _ICS932S401_DEVICE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ICS932S401_DEVICE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w0, asr #8
	b.ne	LBB0_6
; %bb.3:
	asr	w2, w22, w23
Lloh21:
	adrp	x8, _ICS932S401_REV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ICS932S401_REV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w2, w8
	b.eq	LBB0_5
; %bb.4:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_info
LBB0_5:
	ldr	w0, [x19]
Lloh26:
	adrp	x8, _I2C_NAME_SIZE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _I2C_NAME_SIZE@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strlcpy
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.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	"ics932s401"

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