	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emc2103_probe
_emc2103_probe:                         ## @emc2103_probe
	.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	%rdi, %r15
	movl	8(%rdi), %edi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	4(%r15), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, 24(%r12)
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	_REG_PRODUCT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	cmpl	$36, %eax
	jne	LBB0_7
## %bb.6:
	movl	$2, (%r12)
	jmp	LBB0_14
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_REG_CONF1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	%ebx, %eax
	andl	$1, %eax
	addl	$3, %eax
	movl	%eax, (%r12)
	movq	_apd@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$1, %eax
	je	LBB0_12
## %bb.10:
	testl	%eax, %eax
	jne	LBB0_14
## %bb.11:
	movl	$3, (%r12)
	andl	$-2, %ebx
	jmp	LBB0_13
LBB0_8:
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_dev_dbg
	jmp	LBB0_19
LBB0_12:
	movl	$4, (%r12)
	orl	$1, %ebx
LBB0_13:
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_14:
	movq	8(%r12), %rax
	movq	_emc2103_group@GOTPCREL(%rip), %rcx
	movq	%rcx, (%rax)
	movl	(%r12), %eax
	cmpl	$3, %eax
	jl	LBB0_17
## %bb.15:
	movq	8(%r12), %rcx
	movq	_emc2103_temp3_group@GOTPCREL(%rip), %rdx
	movq	%rdx, 8(%rcx)
	cmpl	$4, %eax
	jne	LBB0_17
## %bb.16:
	movq	8(%r12), %rax
	movq	_emc2103_temp4_group@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rax)
LBB0_17:
	movl	(%r15), %esi
	movq	8(%r12), %rcx
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_18
## %bb.20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_18:
	callq	_dev_name
	movl	(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_REG_PRODUCT_ID,4,2             ## @REG_PRODUCT_ID
	.comm	_REG_CONF1,4,2                  ## @REG_CONF1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg 0x%02x, err %d\n"

	.comm	_apd,4,2                        ## @apd
	.comm	_emc2103_group,4,2              ## @emc2103_group
	.comm	_emc2103_temp3_group,4,2        ## @emc2103_temp3_group
	.comm	_emc2103_temp4_group,4,2        ## @emc2103_temp4_group
L_.str.1:                               ## @.str.1
	.asciz	"%s: sensor '%s'\n"

	.no_dead_strip	_emc2103_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emc2103_probe
_emc2103_probe:                         ; @emc2103_probe
	.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, x0
	ldr	w0, [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]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
	add	x20, x19, #4
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_i2c_set_clientdata
	str	x19, [x21, #24]
	add	x0, x21, #16
	bl	_mutex_init
Lloh6:
	adrp	x8, _REG_PRODUCT_ID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_PRODUCT_ID@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	cmp	w0, #36
	b.ne	LBB0_8
; %bb.3:
	mov	w8, #2
	str	w8, [x21]
	b	LBB0_15
LBB0_4:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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
LBB0_8:
Lloh13:
	adrp	x23, _REG_CONF1@GOTPAGE
Lloh14:
	ldr	x23, [x23, _REG_CONF1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_12
; %bb.9:
	tst	w22, #0x1
	mov	w8, #3
	cinc	w8, w8, ne
	str	w8, [x21]
Lloh15:
	adrp	x8, _apd@GOTPAGE
Lloh16:
	ldr	x8, [x8, _apd@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_13
; %bb.10:
	cbnz	w8, LBB0_15
; %bb.11:
	mov	w8, #3
	str	w8, [x21]
	and	w2, w22, #0xfffffffe
	b	LBB0_14
LBB0_12:
	ldr	w2, [x23]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_dev_dbg
	b	LBB0_7
LBB0_13:
	mov	w8, #4
	str	w8, [x21]
	orr	w2, w22, #0x1
LBB0_14:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
LBB0_15:
	ldr	x8, [x21, #8]
Lloh20:
	adrp	x9, _emc2103_group@GOTPAGE
Lloh21:
	ldr	x9, [x9, _emc2103_group@GOTPAGEOFF]
	str	x9, [x8]
	ldr	w8, [x21]
	cmp	w8, #3
	b.lt	LBB0_18
; %bb.16:
	ldr	x9, [x21, #8]
Lloh22:
	adrp	x10, _emc2103_temp3_group@GOTPAGE
Lloh23:
	ldr	x10, [x10, _emc2103_temp3_group@GOTPAGEOFF]
	str	x10, [x9, #8]
	cmp	w8, #4
	b.ne	LBB0_18
; %bb.17:
	ldr	x8, [x21, #8]
Lloh24:
	adrp	x9, _emc2103_temp4_group@GOTPAGE
Lloh25:
	ldr	x9, [x9, _emc2103_temp4_group@GOTPAGEOFF]
	str	x9, [x8, #16]
LBB0_18:
	ldr	w1, [x19]
	ldr	x3, [x21, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_devm_hwmon_device_register_with_groups
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x21
	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
	b	_PTR_ERR
LBB0_20:
	mov	x0, x21
	bl	_dev_name
	mov	x2, x0
	ldr	w3, [x19]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w22, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_REG_PRODUCT_ID,4,2             ; @REG_PRODUCT_ID
	.comm	_REG_CONF1,4,2                  ; @REG_CONF1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg 0x%02x, err %d\n"

	.comm	_apd,4,2                        ; @apd
	.comm	_emc2103_group,4,2              ; @emc2103_group
	.comm	_emc2103_temp3_group,4,2        ; @emc2103_temp3_group
	.comm	_emc2103_temp4_group,4,2        ; @emc2103_temp4_group
l_.str.1:                               ; @.str.1
	.asciz	"%s: sensor '%s'\n"

	.no_dead_strip	_emc2103_probe
.subsections_via_symbols
