	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_probe
_i2c_probe:                             ## @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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rsi
	callq	_ofw_bus_is_compatible
	movq	_ENXIO@GOTPCREL(%rip), %r15
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	%r14d, %edi
	callq	_device_get_softc
	movq	%rax, %rbx
	leaq	8(%rax), %rdx
	movq	$0, 8(%rax)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	callq	_rman_get_bustag
	movl	%eax, 20(%rbx)
	movq	(%rbx), %rdi
	callq	_rman_get_bushandle
	movl	%eax, 16(%rbx)
	movq	_I2C_CONTROL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2C_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_i2c_write_reg
	movl	(%r12), %esi
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movl	%r14d, %edi
	callq	_bus_release_resource
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edi
	callq	_device_set_desc
	movq	_BUS_PROBE_DEFAULT@GOTPCREL(%rip), %r15
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	callq	_device_printf
LBB0_4:
	movl	(%r15), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsl-i2c"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
L_.str.1:                               ## @.str.1
	.asciz	"could not allocate resources\n"

	.comm	_I2C_CONTROL_REG,4,2            ## @I2C_CONTROL_REG
	.comm	_I2C_ENABLE,4,2                 ## @I2C_ENABLE
L_.str.2:                               ## @.str.2
	.asciz	"I2C bus controller"

	.comm	_BUS_PROBE_DEFAULT,4,2          ## @BUS_PROBE_DEFAULT
	.no_dead_strip	_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_probe
_i2c_probe:                             ; @i2c_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ofw_bus_is_compatible
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_device_get_softc
	mov	x20, x0
	mov	x2, x0
	str	xzr, [x2, #8]!
Lloh2:
	adrp	x21, _SYS_RES_MEMORY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SYS_RES_MEMORY@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _RF_ACTIVE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RF_ACTIVE@GOTPAGEOFF]
Lloh6:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_bus_alloc_resource_any
	str	x0, [x20]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_rman_get_bustag
	str	w0, [x20, #20]
	ldr	x0, [x20]
	bl	_rman_get_bushandle
	str	w0, [x20, #16]
Lloh7:
	adrp	x8, _I2C_CONTROL_REG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _I2C_CONTROL_REG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _I2C_ENABLE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _I2C_ENABLE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_i2c_write_reg
	ldr	w1, [x21]
	ldp	x3, x2, [x20]
	mov	x0, x19
	bl	_bus_release_resource
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_device_set_desc
Lloh15:
	adrp	x8, _BUS_PROBE_DEFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BUS_PROBE_DEFAULT@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_device_printf
LBB0_4:
Lloh19:
	adrp	x8, _ENXIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsl-i2c"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
l_.str.1:                               ; @.str.1
	.asciz	"could not allocate resources\n"

	.comm	_I2C_CONTROL_REG,4,2            ; @I2C_CONTROL_REG
	.comm	_I2C_ENABLE,4,2                 ; @I2C_ENABLE
l_.str.2:                               ; @.str.2
	.asciz	"I2C bus controller"

	.comm	_BUS_PROBE_DEFAULT,4,2          ; @BUS_PROBE_DEFAULT
	.no_dead_strip	_i2c_probe
.subsections_via_symbols
