	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xiic_i2c_probe
_xiic_i2c_probe:                        ## @xiic_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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 48(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	48(%rbx), %edi
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_21
## %bb.6:
	movq	%r14, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	leaq	8(%rbx), %r13
	movq	_xiic_adapter@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 8(%rbx)
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	%r14, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	leaq	44(%rbx), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	addq	$40, %rdi
	callq	_init_waitqueue_head
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, (%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	(%rbx), %edi
	jmp	LBB0_4
LBB0_8:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r12d, %r15d
	jmp	LBB0_21
LBB0_10:
	movq	%r14, 32(%rbx)
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	32(%rbx), %rdi
	movq	_XIIC_PM_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pm_runtime_set_autosuspend_delay
	movq	32(%rbx), %rdi
	callq	_pm_runtime_use_autosuspend
	movq	32(%rbx), %rdi
	callq	_pm_runtime_set_active
	movq	_xiic_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_xiic_process@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	4(%r14), %r9d
	movq	%rbx, (%rsp)
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	_LITTLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_XIIC_CR_REG_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XIIC_CR_TX_FIFO_RESET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_xiic_setreg32
	movq	_XIIC_SR_REG_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_xiic_getreg32
	movq	_XIIC_SR_TX_FIFO_EMPTY_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_14
## %bb.13:
	movq	_BIG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
LBB0_14:
	movq	%rbx, %rdi
	callq	_xiic_reinit
	movq	%r13, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_17
## %bb.15:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_xiic_deinit
	jmp	LBB0_16
LBB0_11:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_16:
	movq	%r14, %rdi
	callq	_pm_runtime_set_suspended
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movl	(%rbx), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_21
LBB0_17:
	xorl	%r15d, %r15d
	testq	%r12, %r12
	je	LBB0_21
## %bb.18:
	cmpq	$0, (%r12)
	jle	LBB0_21
## %bb.19:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_i2c_new_device
	incq	%rbx
	cmpq	(%r12), %rbx
	jl	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_xiic_adapter,16,3              ## @xiic_adapter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input clock not found.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to enable clock.\n"

	.comm	_XIIC_PM_TIMEOUT,4,2            ## @XIIC_PM_TIMEOUT
	.comm	_xiic_isr,4,2                   ## @xiic_isr
	.comm	_xiic_process,4,2               ## @xiic_process
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"Cannot claim IRQ\n"

	.comm	_LITTLE,4,2                     ## @LITTLE
	.comm	_XIIC_CR_REG_OFFSET,4,2         ## @XIIC_CR_REG_OFFSET
	.comm	_XIIC_CR_TX_FIFO_RESET_MASK,4,2 ## @XIIC_CR_TX_FIFO_RESET_MASK
	.comm	_XIIC_SR_REG_OFFSET,4,2         ## @XIIC_SR_REG_OFFSET
	.comm	_XIIC_SR_TX_FIFO_EMPTY_MASK,4,2 ## @XIIC_SR_TX_FIFO_EMPTY_MASK
	.comm	_BIG,4,2                        ## @BIG
	.no_dead_strip	_xiic_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xiic_i2c_probe
_xiic_i2c_probe:                        ; @xiic_i2c_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	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, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x20, #48]
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	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_6:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x23, x0
	tbnz	w0, #31, LBB0_5
; %bb.7:
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x22, x20, #8
Lloh9:
	adrp	x8, _xiic_adapter@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xiic_adapter@GOTPAGEOFF]
Lloh11:
	ldr	q0, [x8]
	stur	q0, [x20, #8]
	mov	x0, x22
	mov	x1, x20
	bl	_i2c_set_adapdata
	str	x19, [x20, #16]
	ldr	w8, [x19]
	str	w8, [x20, #8]
	add	x0, x20, #44
	bl	_mutex_init
	add	x0, x20, #40
	bl	_init_waitqueue_head
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	b	LBB0_3
LBB0_9:
	ldr	w0, [x20]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_11
; %bb.10:
	mov	x24, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x23, x24
	b	LBB0_5
LBB0_11:
	str	x19, [x20, #32]
	mov	x0, x19
	bl	_pm_runtime_enable
	ldr	x0, [x20, #32]
Lloh16:
	adrp	x8, _XIIC_PM_TIMEOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XIIC_PM_TIMEOUT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_pm_runtime_set_autosuspend_delay
	ldr	x0, [x20, #32]
	bl	_pm_runtime_use_autosuspend
	ldr	x0, [x20, #32]
	bl	_pm_runtime_set_active
Lloh19:
	adrp	x8, _xiic_isr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _xiic_isr@GOTPAGEOFF]
Lloh21:
	adrp	x9, _xiic_process@GOTPAGE
Lloh22:
	ldr	x9, [x9, _xiic_process@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	ldr	w3, [x9]
Lloh25:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh27:
	ldr	w4, [x8]
	ldr	w5, [x19, #4]
	mov	x0, x19
	mov	x1, x23
	mov	x6, x20
	bl	_devm_request_threaded_irq
	tbnz	w0, #31, LBB0_16
; %bb.12:
Lloh28:
	adrp	x8, _LITTLE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _LITTLE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh31:
	adrp	x8, _XIIC_CR_REG_OFFSET@GOTPAGE
Lloh32:
	ldr	x8, [x8, _XIIC_CR_REG_OFFSET@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _XIIC_CR_TX_FIFO_RESET_MASK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _XIIC_CR_TX_FIFO_RESET_MASK@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_xiic_setreg32
Lloh37:
	adrp	x8, _XIIC_SR_REG_OFFSET@GOTPAGE
Lloh38:
	ldr	x8, [x8, _XIIC_SR_REG_OFFSET@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_xiic_getreg32
Lloh40:
	adrp	x8, _XIIC_SR_TX_FIFO_EMPTY_MASK@GOTPAGE
Lloh41:
	ldr	x8, [x8, _XIIC_SR_TX_FIFO_EMPTY_MASK@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_14
; %bb.13:
Lloh43:
	adrp	x8, _BIG@GOTPAGE
Lloh44:
	ldr	x8, [x8, _BIG@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	str	w8, [x20, #24]
LBB0_14:
	mov	x0, x20
	bl	_xiic_reinit
	mov	x0, x22
	bl	_i2c_add_adapter
	cbz	w0, LBB0_18
; %bb.15:
	mov	x23, x0
	mov	x0, x20
	bl	_xiic_deinit
	b	LBB0_17
LBB0_16:
	mov	x23, x0
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_17:
	mov	x0, x19
	bl	_pm_runtime_set_suspended
	mov	x0, x19
	bl	_pm_runtime_disable
	ldr	w0, [x20]
	bl	_clk_disable_unprepare
	b	LBB0_5
LBB0_18:
	cbz	x21, LBB0_22
; %bb.19:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_22
; %bb.20:
	mov	x19, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x1, x19, x8
	mov	x0, x22
	bl	_i2c_new_device
	mov	w23, #0
	add	x19, x19, #1
	ldr	x8, [x21]
	cmp	x19, x8
	b.lt	LBB0_21
	b	LBB0_5
LBB0_22:
	mov	w23, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_xiic_adapter,16,3              ; @xiic_adapter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input clock not found.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to enable clock.\n"

	.comm	_XIIC_PM_TIMEOUT,4,2            ; @XIIC_PM_TIMEOUT
	.comm	_xiic_isr,4,2                   ; @xiic_isr
	.comm	_xiic_process,4,2               ; @xiic_process
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"Cannot claim IRQ\n"

	.comm	_LITTLE,4,2                     ; @LITTLE
	.comm	_XIIC_CR_REG_OFFSET,4,2         ; @XIIC_CR_REG_OFFSET
	.comm	_XIIC_CR_TX_FIFO_RESET_MASK,4,2 ; @XIIC_CR_TX_FIFO_RESET_MASK
	.comm	_XIIC_SR_REG_OFFSET,4,2         ; @XIIC_SR_REG_OFFSET
	.comm	_XIIC_SR_TX_FIFO_EMPTY_MASK,4,2 ; @XIIC_SR_TX_FIFO_EMPTY_MASK
	.comm	_BIG,4,2                        ; @BIG
	.no_dead_strip	_xiic_i2c_probe
.subsections_via_symbols
