	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function owl_i2c_probe
_owl_i2c_probe:                         ## @owl_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
	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
	leaq	4(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$88, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r13
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 84(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	84(%r13), %edi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	_OWL_I2C_DEF_SPEED_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%rdx, (%r13)
	jmp	LBB0_12
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_6
LBB0_11:
	movq	(%r13), %rdx
LBB0_12:
	movq	_OWL_I2C_DEF_SPEED_HZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_15
## %bb.13:
	movq	_OWL_I2C_MAX_SPEED_HZ@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_15
## %bb.14:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_15:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 8(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	8(%r13), %edi
	jmp	LBB0_3
LBB0_17:
	movl	8(%r13), %edi
	callq	_clk_prepare_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.18:
	movl	8(%r13), %edi
	callq	_clk_get_rate
	movl	%eax, 80(%r13)
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	leaq	76(%r13), %rdi
	callq	_init_completion
	leaq	72(%r13), %rdi
	callq	_spin_lock_init
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %rbx
	addq	$16, %rbx
	movl	%eax, 64(%r13)
	movq	_owl_i2c_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 56(%r13)
	movq	_OWL_I2C_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
	movq	_owl_i2c_quirks@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r13)
	movq	%r14, 32(%r13)
	movl	4(%r15), %eax
	movl	%eax, 24(%r13)
	movl	16(%r13), %edi
	leaq	L_.str.5(%rip), %rdx
	leaq	L_.str.6(%rip), %rcx
	movl	$4, %esi
	callq	_snprintf
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_adapdata
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	movq	_owl_i2c_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %r8d
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%ecx, %ecx
	movq	%r13, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_23
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_22:
	movl	8(%r13), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_6
LBB0_23:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_add_adapter                ## TAILCALL
	.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	"failed to get IRQ number\n"

L_.str.1:                               ## @.str.1
	.asciz	"clock-frequency"

	.comm	_OWL_I2C_DEF_SPEED_HZ,8,3       ## @OWL_I2C_DEF_SPEED_HZ
	.comm	_OWL_I2C_MAX_SPEED_HZ,8,3       ## @OWL_I2C_MAX_SPEED_HZ
L_.str.2:                               ## @.str.2
	.asciz	"invalid clock-frequency %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"failed to get clock\n"

L_.str.4:                               ## @.str.4
	.asciz	"input clock rate should not be zero\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_owl_i2c_algorithm,4,2          ## @owl_i2c_algorithm
	.comm	_OWL_I2C_TIMEOUT,4,2            ## @OWL_I2C_TIMEOUT
	.comm	_owl_i2c_quirks,4,2             ## @owl_i2c_quirks
L_.str.5:                               ## @.str.5
	.asciz	"%s"

L_.str.6:                               ## @.str.6
	.asciz	"OWL I2C adapter"

	.comm	_owl_i2c_interrupt,4,2          ## @owl_i2c_interrupt
L_.str.7:                               ## @.str.7
	.asciz	"failed to request irq %d\n"

	.no_dead_strip	_owl_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function owl_i2c_probe
_owl_i2c_probe:                         ; @owl_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	x21, x0
	add	x20, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #88
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	w0, [x19, #84]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w0, [x19, #84]
LBB0_3:
	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
	b	_PTR_ERR
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_6:
	mov	x0, x24
	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_7:
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_of_property_read_u32
Lloh10:
	adrp	x9, _OWL_I2C_DEF_SPEED_HZ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _OWL_I2C_DEF_SPEED_HZ@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x8, [x9]
	str	x8, [x19]
	b	LBB0_12
LBB0_10:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	mov	x24, x22
	b	LBB0_6
LBB0_11:
	ldr	x8, [x19]
LBB0_12:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _OWL_I2C_MAX_SPEED_HZ@GOTPAGE
Lloh15:
	ldr	x10, [x10, _OWL_I2C_MAX_SPEED_HZ@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_15
; %bb.13:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.14:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19, #8]
	b	LBB0_3
LBB0_15:
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_16:
	ldr	w0, [x19, #8]
	bl	_clk_prepare_enable
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.17:
	ldr	w0, [x19, #8]
	bl	_clk_get_rate
	str	w0, [x19, #80]
	cbz	w0, LBB0_20
; %bb.18:
	add	x0, x19, #76
	bl	_init_completion
	add	x0, x19, #72
	bl	_spin_lock_init
Lloh23:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	mov	x23, x19
	ldr	w0, [x23, #16]!
Lloh26:
	adrp	x9, _owl_i2c_algorithm@GOTPAGE
Lloh27:
	ldr	x9, [x9, _owl_i2c_algorithm@GOTPAGEOFF]
	str	w8, [x19, #64]
	str	x9, [x19, #56]
Lloh28:
	adrp	x8, _OWL_I2C_TIMEOUT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _OWL_I2C_TIMEOUT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x19, #48]
Lloh31:
	adrp	x8, _owl_i2c_quirks@GOTPAGE
Lloh32:
	ldr	x8, [x8, _owl_i2c_quirks@GOTPAGEOFF]
	stp	x20, x8, [x19, #32]
	ldr	w8, [x21, #4]
	str	w8, [x19, #24]
Lloh33:
	adrp	x2, l_.str.5@PAGE
Lloh34:
	add	x2, x2, l_.str.5@PAGEOFF
Lloh35:
	adrp	x3, l_.str.6@PAGE
Lloh36:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x23
	mov	x1, x19
	bl	_i2c_set_adapdata
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh37:
	adrp	x8, _owl_i2c_interrupt@GOTPAGE
Lloh38:
	ldr	x8, [x8, _owl_i2c_interrupt@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	ldr	w4, [x21]
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	cbz	w0, LBB0_22
; %bb.19:
	mov	x24, x0
	str	x22, [sp]
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_21
LBB0_20:
Lloh42:
	adrp	x1, l_.str.4@PAGE
Lloh43:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh44:
	adrp	x8, _EINVAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_21:
	ldr	w0, [x19, #8]
	bl	_clk_disable_unprepare
	b	LBB0_6
LBB0_22:
	mov	x0, x23
	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
	b	_i2c_add_adapter
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.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	"failed to get IRQ number\n"

l_.str.1:                               ; @.str.1
	.asciz	"clock-frequency"

	.comm	_OWL_I2C_DEF_SPEED_HZ,8,3       ; @OWL_I2C_DEF_SPEED_HZ
	.comm	_OWL_I2C_MAX_SPEED_HZ,8,3       ; @OWL_I2C_MAX_SPEED_HZ
l_.str.2:                               ; @.str.2
	.asciz	"invalid clock-frequency %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"failed to get clock\n"

l_.str.4:                               ; @.str.4
	.asciz	"input clock rate should not be zero\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_owl_i2c_algorithm,4,2          ; @owl_i2c_algorithm
	.comm	_OWL_I2C_TIMEOUT,4,2            ; @OWL_I2C_TIMEOUT
	.comm	_owl_i2c_quirks,4,2             ; @owl_i2c_quirks
l_.str.5:                               ; @.str.5
	.asciz	"%s"

l_.str.6:                               ; @.str.6
	.asciz	"OWL I2C adapter"

	.comm	_owl_i2c_interrupt,4,2          ; @owl_i2c_interrupt
l_.str.7:                               ; @.str.7
	.asciz	"failed to request irq %d\n"

	.no_dead_strip	_owl_i2c_probe
.subsections_via_symbols
