	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hix5hd2_i2c_probe
_hix5hd2_i2c_probe:                     ## @hix5hd2_i2c_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$100000, (%r14)                 ## imm = 0x186A0
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_19
LBB0_4:
	movl	-44(%rbp), %ecx
	movq	_HIX5I2C_MAX_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpl	%edx, %ecx
	jbe	LBB0_6
## %bb.5:
	movl	%edx, (%r14)
	movq	8(%r14), %rdi
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	jmp	LBB0_7
LBB0_6:
	movl	%ecx, (%r14)
LBB0_7:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 72(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movl	72(%r14), %edi
LBB0_9:
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_19:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	jle	LBB0_11
## %bb.12:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	4(%r14), %edi
	jmp	LBB0_9
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_14:
	movl	4(%r14), %edi
	callq	_clk_prepare_enable
	leaq	16(%r14), %r13
	movl	60(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	%rbx, 8(%r14)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_hix5hd2_i2c_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	movl	$3, 16(%r14)
	movq	%r12, 32(%r14)
	movq	%r14, 40(%r14)
	movq	%rbx, 24(%r14)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	leaq	68(%r14), %rdi
	callq	_spin_lock_init
	movq	%r14, %rdi
	addq	$64, %rdi
	callq	_init_completion
	movq	%r14, %rdi
	callq	_hix5hd2_i2c_init
	movq	_hix5hd2_i2c_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_IRQF_NO_SUSPEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_dev_name
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %r15d
LBB0_18:
	movl	4(%r14), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_19
LBB0_16:
	movq	8(%r14), %rdi
	movq	_MSEC_PER_SEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	8(%r14), %rdi
	callq	_pm_runtime_use_autosuspend
	movq	8(%r14), %rdi
	callq	_pm_runtime_set_active
	movq	8(%r14), %rdi
	callq	_pm_runtime_enable
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_i2c_add_adapter
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_19
## %bb.17:
	movq	8(%r14), %rdi
	callq	_pm_runtime_disable
	movq	8(%r14), %rdi
	callq	_pm_runtime_set_suspended
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-frequency"

	.comm	_HIX5I2C_MAX_FREQ,4,2           ## @HIX5I2C_MAX_FREQ
L_.str.1:                               ## @.str.1
	.asciz	"use max freq %d instead\n"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.2:                               ## @.str.2
	.asciz	"cannot find HS-I2C IRQ\n"

L_.str.3:                               ## @.str.3
	.asciz	"cannot get clock\n"

L_.str.4:                               ## @.str.4
	.asciz	"hix5hd2-i2c"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_hix5hd2_i2c_algorithm,4,2      ## @hix5hd2_i2c_algorithm
	.comm	_hix5hd2_i2c_irq,4,2            ## @hix5hd2_i2c_irq
	.comm	_IRQF_NO_SUSPEND,4,2            ## @IRQF_NO_SUSPEND
L_.str.5:                               ## @.str.5
	.asciz	"cannot request HS-I2C IRQ %d\n"

	.comm	_MSEC_PER_SEC,4,2               ## @MSEC_PER_SEC
	.no_dead_strip	_hix5hd2_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hix5hd2_i2c_probe
_hix5hd2_i2c_probe:                     ; @hix5hd2_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x22
	bl	_of_property_read_u32
	cbz	x0, LBB0_4
; %bb.2:
	mov	w8, #34464
	movk	w8, #1, lsl #16
	str	w8, [x19]
	b	LBB0_7
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_4:
	ldr	w9, [sp, #12]
Lloh8:
	adrp	x8, _HIX5I2C_MAX_FREQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HIX5I2C_MAX_FREQ@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w9, w10
	b.ls	LBB0_6
; %bb.5:
	str	w10, [x19]
	ldr	x0, [x19, #8]
	ldr	w2, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	b	LBB0_7
LBB0_6:
	str	w9, [x19]
LBB0_7:
Lloh12:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.8:
	ldr	w0, [x19, #72]
LBB0_9:
	bl	_PTR_ERR
	mov	x21, x0
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	cmp	w0, #0
	b.le	LBB0_14
; %bb.12:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.13:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #4]
	b	LBB0_9
LBB0_14:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_10
LBB0_15:
	ldr	w0, [x19, #4]
	bl	_clk_prepare_enable
	ldr	w0, [x19, #60]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	mov	w8, #3
	mov	x23, x19
	str	w8, [x23, #16]!
	str	x20, [x19, #8]
Lloh21:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #56]
Lloh24:
	adrp	x8, _hix5hd2_i2c_algorithm@GOTPAGE
Lloh25:
	ldr	x8, [x8, _hix5hd2_i2c_algorithm@GOTPAGEOFF]
	stp	x19, x8, [x19, #40]
	stp	x20, x22, [x19, #24]
	mov	x0, x23
	mov	x1, x19
	bl	_i2c_set_adapdata
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x0, x19, #68
	bl	_spin_lock_init
	add	x0, x19, #64
	bl	_init_completion
	mov	x0, x19
	bl	_hix5hd2_i2c_init
Lloh26:
	adrp	x8, _hix5hd2_i2c_irq@GOTPAGE
Lloh27:
	ldr	x8, [x8, _hix5hd2_i2c_irq@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
Lloh29:
	adrp	x8, _IRQF_NO_SUSPEND@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQF_NO_SUSPEND@GOTPAGEOFF]
Lloh31:
	ldr	w24, [x8]
	mov	x0, x20
	bl	_dev_name
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x24
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_18
; %bb.16:
	mov	x22, x0
	str	x21, [sp]
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x21, x22
LBB0_17:
	ldr	w0, [x19, #4]
	bl	_clk_disable_unprepare
	b	LBB0_10
LBB0_18:
	ldr	x0, [x19, #8]
Lloh34:
	adrp	x8, _MSEC_PER_SEC@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MSEC_PER_SEC@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	bl	_pm_runtime_set_autosuspend_delay
	ldr	x0, [x19, #8]
	bl	_pm_runtime_use_autosuspend
	ldr	x0, [x19, #8]
	bl	_pm_runtime_set_active
	ldr	x0, [x19, #8]
	bl	_pm_runtime_enable
	mov	x0, x23
	bl	_i2c_add_adapter
	mov	x21, x0
	tbz	w0, #31, LBB0_10
; %bb.19:
	ldr	x0, [x19, #8]
	bl	_pm_runtime_disable
	ldr	x0, [x19, #8]
	bl	_pm_runtime_set_suspended
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-frequency"

	.comm	_HIX5I2C_MAX_FREQ,4,2           ; @HIX5I2C_MAX_FREQ
l_.str.1:                               ; @.str.1
	.asciz	"use max freq %d instead\n"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.2:                               ; @.str.2
	.asciz	"cannot find HS-I2C IRQ\n"

l_.str.3:                               ; @.str.3
	.asciz	"cannot get clock\n"

l_.str.4:                               ; @.str.4
	.asciz	"hix5hd2-i2c"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_hix5hd2_i2c_algorithm,4,2      ; @hix5hd2_i2c_algorithm
	.comm	_hix5hd2_i2c_irq,4,2            ; @hix5hd2_i2c_irq
	.comm	_IRQF_NO_SUSPEND,4,2            ; @IRQF_NO_SUSPEND
l_.str.5:                               ; @.str.5
	.asciz	"cannot request HS-I2C IRQ %d\n"

	.comm	_MSEC_PER_SEC,4,2               ; @MSEC_PER_SEC
	.no_dead_strip	_hix5hd2_i2c_probe
.subsections_via_symbols
