	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmt_i2c_probe
_wmt_i2c_probe:                         ## @wmt_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 64(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	64(%r14), %edi
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_5:
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movl	%eax, 40(%r14)
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_of_clk_get
	movl	%eax, 60(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	60(%r14), %edi
	jmp	LBB0_3
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_11:
	movq	_I2C_MODE_STANDARD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	leaq	L_.str.2(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	cmpl	$400000, -36(%rbp)              ## imm = 0x61A80
	jne	LBB0_14
## %bb.13:
	movq	_I2C_MODE_FAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
LBB0_14:
	movq	%r12, 48(%r14)
	movl	40(%r14), %esi
	movq	_wmt_i2c_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %r8
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movl	40(%r14), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_16:
	movq	%r14, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movl	36(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_wmt_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	movq	%r12, 16(%r14)
	movq	(%r12), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_init_completion
	movq	%r14, %rdi
	callq	_wmt_i2c_reset_hardware
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_18:
	movq	%r15, %rdi
	callq	_i2c_add_adapter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.19:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq missing or invalid\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"unable to request clock\n"

	.comm	_I2C_MODE_STANDARD,4,2          ## @I2C_MODE_STANDARD
L_.str.2:                               ## @.str.2
	.asciz	"clock-frequency"

	.comm	_I2C_MODE_FAST,4,2              ## @I2C_MODE_FAST
	.comm	_wmt_i2c_isr,4,2                ## @wmt_i2c_isr
L_.str.3:                               ## @.str.3
	.asciz	"i2c"

L_.str.4:                               ## @.str.4
	.asciz	"failed to request irq %i\n"

L_.str.5:                               ## @.str.5
	.asciz	"WMT I2C adapter"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_wmt_i2c_algo,4,2               ## @wmt_i2c_algo
L_.str.6:                               ## @.str.6
	.asciz	"error initializing hardware\n"

	.no_dead_strip	_wmt_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmt_i2c_probe
_wmt_i2c_probe:                         ; @wmt_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w0, [x20, #64]
LBB0_3:
	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
	mov	x0, x21
	mov	w1, #0
	bl	_irq_of_parse_and_map
	str	w0, [x20, #40]
	cbz	w0, LBB0_10
; %bb.8:
	mov	x0, x21
	mov	w1, #0
	bl	_of_clk_get
	str	w0, [x20, #60]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #60]
	b	LBB0_3
LBB0_10:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_11:
Lloh14:
	adrp	x8, _I2C_MODE_STANDARD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _I2C_MODE_STANDARD@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20, #56]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	cbnz	w0, LBB0_14
; %bb.12:
	ldr	w8, [sp, #12]
	sub	w8, w8, #97, lsl #12            ; =397312
	cmp	w8, #2688
	b.ne	LBB0_14
; %bb.13:
Lloh19:
	adrp	x8, _I2C_MODE_FAST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _I2C_MODE_FAST@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x20, #56]
LBB0_14:
	str	x19, [x20, #48]
	ldr	w1, [x20, #40]
Lloh22:
	adrp	x8, _wmt_i2c_isr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _wmt_i2c_isr@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x4, l_.str.3@PAGE
Lloh26:
	add	x4, x4, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_16
; %bb.15:
	mov	x21, x0
	ldr	w8, [x20, #40]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_18
LBB0_16:
	add	x22, x20, #8
	mov	x0, x22
	mov	x1, x20
	bl	_i2c_set_adapdata
	ldr	w0, [x20, #36]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
Lloh31:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh34:
	adrp	x8, _wmt_i2c_algo@GOTPAGE
Lloh35:
	ldr	x8, [x8, _wmt_i2c_algo@GOTPAGEOFF]
	str	x8, [x20, #24]
	ldr	x8, [x19]
	stp	x8, x19, [x20, #8]
	mov	x0, x20
	bl	_init_completion
	mov	x0, x20
	bl	_wmt_i2c_reset_hardware
	cbz	w0, LBB0_19
; %bb.17:
	mov	x21, x0
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_6
LBB0_19:
	mov	x0, x22
	bl	_i2c_add_adapter
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.20:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq missing or invalid\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"unable to request clock\n"

	.comm	_I2C_MODE_STANDARD,4,2          ; @I2C_MODE_STANDARD
l_.str.2:                               ; @.str.2
	.asciz	"clock-frequency"

	.comm	_I2C_MODE_FAST,4,2              ; @I2C_MODE_FAST
	.comm	_wmt_i2c_isr,4,2                ; @wmt_i2c_isr
l_.str.3:                               ; @.str.3
	.asciz	"i2c"

l_.str.4:                               ; @.str.4
	.asciz	"failed to request irq %i\n"

l_.str.5:                               ; @.str.5
	.asciz	"WMT I2C adapter"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_wmt_i2c_algo,4,2               ; @wmt_i2c_algo
l_.str.6:                               ; @.str.6
	.asciz	"error initializing hardware\n"

	.no_dead_strip	_wmt_i2c_probe
.subsections_via_symbols
