	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlr_i2c_probe
_xlr_i2c_probe:                         ## @xlr_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, %r14
	leaq	4(%rdi), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$104, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %r12
	movq	_xlr_i2c_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_xlr_i2c_config_default@GOTPCREL(%rip), %rax
LBB0_5:
	movq	%rax, 96(%r12)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 80(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.18:
	movq	80(%r12), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	jle	LBB0_10
## %bb.7:
	movq	96(%r12), %rcx
	movq	_XLR_I2C_FLAG_IRQ@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_10
## %bb.8:
	movl	%eax, (%r12)
	movq	80(%r12), %rdi
	movq	_XLR_I2C_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_xlr_i2c_wreg
	movq	80(%r12), %rdi
	movq	_XLR_I2C_INT_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$15, %edx
	callq	_xlr_i2c_wreg
	movl	(%r12), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_xlr_i2c_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_dev_name
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movl	%eax, %r8d
	movq	%r12, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jne	LBB0_17
## %bb.9:
	leaq	88(%r15), %rdi
	callq	_init_waitqueue_head
LBB0_10:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movl	$100000, -44(%rbp)              ## imm = 0x186A0
LBB0_12:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
LBB0_15:
	addq	$8, %r15
	movq	%rbx, 16(%r12)
	movl	4(%r14), %eax
	movl	%eax, 8(%r12)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	%r12, 56(%r12)
	movq	_xlr_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r12)
	movq	_xlr_i2c_quirks@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r12)
	movl	(%r14), %eax
	movl	%eax, 32(%r12)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12)
	movl	24(%r12), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_adapdata
	movq	%r15, %rdi
	callq	_i2c_add_numbered_adapter
	testl	%eax, %eax
	js	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_13:
	movq	%r13, %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movq	%r13, %rdi
	callq	_clk_get_rate
	movl	-44(%rbp), %esi
	addl	%esi, %esi
	movq	%rax, %rdi
	callq	_DIV_ROUND_UP
	movq	80(%r12), %rdi
	movq	_XLR_I2C_CLKDIV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdx
	callq	_xlr_i2c_wreg
	movq	%r13, %rdi
	callq	_clk_disable
	movq	%r13, 72(%r12)
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_xlr_i2c_dt_ids,4,2             ## @xlr_i2c_dt_ids
	.comm	_xlr_i2c_config_default,4,2     ## @xlr_i2c_config_default
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_XLR_I2C_FLAG_IRQ,4,2           ## @XLR_I2C_FLAG_IRQ
	.comm	_XLR_I2C_INT_EN,4,2             ## @XLR_I2C_INT_EN
	.comm	_XLR_I2C_INT_STAT,4,2           ## @XLR_I2C_INT_STAT
	.comm	_xlr_i2c_irq,4,2                ## @xlr_i2c_irq
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-frequency"

	.comm	_XLR_I2C_CLKDIV,4,2             ## @XLR_I2C_CLKDIV
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_xlr_i2c_algo,4,2               ## @xlr_i2c_algo
	.comm	_xlr_i2c_quirks,4,2             ## @xlr_i2c_quirks
	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
L_.str.1:                               ## @.str.1
	.asciz	"xlr-i2c"

L_.str.2:                               ## @.str.2
	.asciz	"Added I2C Bus.\n"

	.no_dead_strip	_xlr_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlr_i2c_probe
_xlr_i2c_probe:                         ; @xlr_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	x19, x0
	add	x21, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #104
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _xlr_i2c_dt_ids@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xlr_i2c_dt_ids@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_of_match_device
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x0]
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
Lloh9:
	adrp	x8, _xlr_i2c_config_default@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xlr_i2c_config_default@GOTPAGEOFF]
LBB0_6:
	str	x8, [x20, #96]
Lloh11:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x21
	bl	_devm_ioremap_resource
	str	x0, [x20, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20, #80]
	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_8:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	cmp	w0, #1
	b.lt	LBB0_12
; %bb.9:
	ldr	x8, [x20, #96]
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _XLR_I2C_FLAG_IRQ@GOTPAGE
Lloh15:
	ldr	x9, [x9, _XLR_I2C_FLAG_IRQ@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.10:
	str	w0, [x20]
	ldr	x0, [x20, #80]
Lloh17:
	adrp	x8, _XLR_I2C_INT_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _XLR_I2C_INT_EN@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_xlr_i2c_wreg
	ldr	x0, [x20, #80]
Lloh20:
	adrp	x8, _XLR_I2C_INT_STAT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XLR_I2C_INT_STAT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	w2, #15
	bl	_xlr_i2c_wreg
	ldr	w22, [x20]
Lloh23:
	adrp	x8, _xlr_i2c_irq@GOTPAGE
Lloh24:
	ldr	x8, [x8, _xlr_i2c_irq@GOTPAGEOFF]
Lloh25:
	ldr	w23, [x8]
Lloh26:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh28:
	ldr	w24, [x8]
	mov	x0, x21
	bl	_dev_name
	mov	x4, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x5, x20
	bl	_devm_request_irq
	cbnz	w0, LBB0_4
; %bb.11:
	add	x0, x20, #88
	bl	_init_waitqueue_head
LBB0_12:
	ldr	w0, [x21]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	x0, LBB0_14
; %bb.13:
	mov	w8, #34464
	movk	w8, #1, lsl #16
	str	w8, [sp, #12]
LBB0_14:
	mov	x0, x21
	mov	x1, #0
	bl	_devm_clk_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_17
LBB0_15:
	mov	x22, x20
	ldp	w9, w8, [x19]
	str	w8, [x22, #8]!
	str	x21, [x20, #16]
Lloh31:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x20, #64]
	str	x20, [x20, #56]
Lloh34:
	adrp	x8, _xlr_i2c_algo@GOTPAGE
Lloh35:
	ldr	x8, [x8, _xlr_i2c_algo@GOTPAGEOFF]
Lloh36:
	adrp	x10, _xlr_i2c_quirks@GOTPAGE
Lloh37:
	ldr	x10, [x10, _xlr_i2c_quirks@GOTPAGEOFF]
	stp	x10, x8, [x20, #40]
Lloh38:
	adrp	x8, _I2C_CLASS_HWMON@GOTPAGE
Lloh39:
	ldr	x8, [x8, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	stp	w8, w9, [x20, #28]
	ldr	w0, [x20, #24]
Lloh41:
	adrp	x2, l_.str.1@PAGE
Lloh42:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x22
	mov	x1, x20
	bl	_i2c_set_adapdata
	mov	x0, x22
	bl	_i2c_add_numbered_adapter
	tbnz	w0, #31, LBB0_4
; %bb.16:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh43:
	adrp	x1, l_.str.2@PAGE
Lloh44:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_info
	mov	w0, #0
	b	LBB0_4
LBB0_17:
	mov	x0, x22
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_4
; %bb.18:
	mov	x0, x22
	bl	_clk_get_rate
	ldr	w8, [sp, #12]
	lsl	w1, w8, #1
	bl	_DIV_ROUND_UP
	mov	x2, x0
	ldr	x0, [x20, #80]
Lloh45:
	adrp	x8, _XLR_I2C_CLKDIV@GOTPAGE
Lloh46:
	ldr	x8, [x8, _XLR_I2C_CLKDIV@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	bl	_xlr_i2c_wreg
	mov	x0, x22
	bl	_clk_disable
	str	x22, [x20, #72]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_xlr_i2c_dt_ids,4,2             ; @xlr_i2c_dt_ids
	.comm	_xlr_i2c_config_default,4,2     ; @xlr_i2c_config_default
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_XLR_I2C_FLAG_IRQ,4,2           ; @XLR_I2C_FLAG_IRQ
	.comm	_XLR_I2C_INT_EN,4,2             ; @XLR_I2C_INT_EN
	.comm	_XLR_I2C_INT_STAT,4,2           ; @XLR_I2C_INT_STAT
	.comm	_xlr_i2c_irq,4,2                ; @xlr_i2c_irq
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-frequency"

	.comm	_XLR_I2C_CLKDIV,4,2             ; @XLR_I2C_CLKDIV
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_xlr_i2c_algo,4,2               ; @xlr_i2c_algo
	.comm	_xlr_i2c_quirks,4,2             ; @xlr_i2c_quirks
	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
l_.str.1:                               ; @.str.1
	.asciz	"xlr-i2c"

l_.str.2:                               ; @.str.2
	.asciz	"Added I2C Bus.\n"

	.no_dead_strip	_xlr_i2c_probe
.subsections_via_symbols
