	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_twi_probe
_at91_twi_probe:                        ## @at91_twi_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, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	%r12, 8(%rax)
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	%rax, %rbx
	movl	(%rax), %r15d
	movq	%r12, %rdi
	callq	_at91_twi_get_driver_data
	movl	%eax, 76(%r14)
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 72(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	72(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_8:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_14
## %bb.9:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	8(%r14), %rdi
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.10:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%rax, %r13
	jmp	LBB0_13
LBB0_15:
	movl	16(%r14), %edi
	callq	_clk_prepare_enable
	movq	%r14, %rbx
	addq	$24, %rbx
	movl	56(%r14), %edi
	leaq	L_.str.1(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_I2C_CLASS_DEPRECATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	8(%r14), %rax
	movq	%rax, 32(%r14)
	movl	4(%r12), %eax
	movl	%eax, 44(%r14)
	movq	_AT91_I2C_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movl	(%r12), %eax
	movl	%eax, 24(%r14)
	movq	%r12, %rdi
	callq	_i2c_detect_slave_mode
	movq	%rax, 64(%r14)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	callq	_at91_twi_probe_slave
	jmp	LBB0_18
LBB0_17:
	callq	_at91_twi_probe_master
LBB0_18:
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.19:
	movq	%r14, %rdi
	callq	_at91_init_twi_bus
	movq	8(%r14), %rdi
	movq	_AUTOSUSPEND_TIMEOUT@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	%rbx, %rdi
	callq	_i2c_add_numbered_adapter
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %r13d
	movl	16(%r14), %edi
	callq	_clk_disable_unprepare
	movq	8(%r14), %rdi
	callq	_pm_runtime_disable
	movq	8(%r14), %rdi
	callq	_pm_runtime_set_suspended
	jmp	LBB0_13
LBB0_21:
	movq	8(%r14), %rbx
	movq	_AT91_TWI_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_at91_twi_read
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_info
	xorl	%r13d, %r13d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no clock defined\n"

L_.str.1:                               ## @.str.1
	.asciz	"AT91"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_CLASS_DEPRECATED,4,2       ## @I2C_CLASS_DEPRECATED
	.comm	_AT91_I2C_TIMEOUT,4,2           ## @AT91_I2C_TIMEOUT
	.comm	_AUTOSUSPEND_TIMEOUT,4,2        ## @AUTOSUSPEND_TIMEOUT
L_.str.2:                               ## @.str.2
	.asciz	"AT91 i2c bus driver (hw version: %#x).\n"

	.comm	_AT91_TWI_VER,4,2               ## @AT91_TWI_VER
	.no_dead_strip	_at91_twi_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_twi_probe
_at91_twi_probe:                        ; @at91_twi_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	x20, 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_5
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #8]
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_9
; %bb.2:
	mov	x22, x0
	ldr	w21, [x0]
	mov	x0, x20
	bl	_at91_twi_get_driver_data
	str	w0, [x19, #76]
	cbz	w0, LBB0_9
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	bl	_devm_ioremap_resource
	str	w0, [x19, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.4:
	ldr	w0, [x19, #72]
	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_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x19]
	tbnz	x0, #63, LBB0_12
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x0, [x19, #8]
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.8:
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_9:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	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_12:
	mov	x23, x0
	b	LBB0_11
LBB0_13:
	ldr	w0, [x19, #16]
	bl	_clk_prepare_enable
	add	x22, x19, #24
	ldr	w0, [x19, #56]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	mov	x0, x22
	mov	x1, x19
	bl	_i2c_set_adapdata
Lloh14:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _I2C_CLASS_DEPRECATED@GOTPAGE
Lloh18:
	ldr	x9, [x9, _I2C_CLASS_DEPRECATED@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
	ldr	x8, [x19, #8]
	str	x8, [x19, #32]
Lloh20:
	adrp	x8, _AT91_I2C_TIMEOUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AT91_I2C_TIMEOUT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldp	w10, w9, [x20]
	stp	w8, w9, [x19, #40]
	str	w10, [x19, #24]
	mov	x0, x20
	bl	_i2c_detect_slave_mode
	str	x0, [x19, #64]
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_at91_twi_probe_slave
	b	LBB0_16
LBB0_15:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_at91_twi_probe_master
LBB0_16:
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.17:
	mov	x0, x19
	bl	_at91_init_twi_bus
	ldr	x0, [x19, #8]
Lloh23:
	adrp	x8, _AUTOSUSPEND_TIMEOUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AUTOSUSPEND_TIMEOUT@GOTPAGEOFF]
Lloh25:
	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, x22
	bl	_i2c_add_numbered_adapter
	mov	x23, x0
	cbz	w0, LBB0_19
; %bb.18:
	ldr	w0, [x19, #16]
	bl	_clk_disable_unprepare
	ldr	x0, [x19, #8]
	bl	_pm_runtime_disable
	ldr	x0, [x19, #8]
	bl	_pm_runtime_set_suspended
	b	LBB0_11
LBB0_19:
	ldr	x20, [x19, #8]
Lloh26:
	adrp	x8, _AT91_TWI_VER@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AT91_TWI_VER@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_at91_twi_read
	mov	x2, x0
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no clock defined\n"

l_.str.1:                               ; @.str.1
	.asciz	"AT91"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_CLASS_DEPRECATED,4,2       ; @I2C_CLASS_DEPRECATED
	.comm	_AT91_I2C_TIMEOUT,4,2           ; @AT91_I2C_TIMEOUT
	.comm	_AUTOSUSPEND_TIMEOUT,4,2        ; @AUTOSUSPEND_TIMEOUT
l_.str.2:                               ; @.str.2
	.asciz	"AT91 i2c bus driver (hw version: %#x).\n"

	.comm	_AT91_TWI_VER,4,2               ; @AT91_TWI_VER
	.no_dead_strip	_at91_twi_probe
.subsections_via_symbols
