	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iic_probe
_iic_probe:                             ## @iic_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
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_of_iomap
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	leaq	68(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_iic_request_irq
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_12:
	movq	_iic_force_fast@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	movl	$1, (%rbx)
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	jne	LBB0_18
## %bb.16:
	movq	(%r12), %rdi
	leaq	L_.str.4(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_17
LBB0_18:
	movl	(%rax), %edi
	callq	_iic_clckdiv
	movl	%eax, 64(%rbx)
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_iic_dev_init
	movq	%rbx, %r15
	addq	$24, %r15
	movq	%r14, 56(%rbx)
	movq	%r12, %rdi
	callq	_of_node_get
	movl	%eax, 48(%rbx)
	movl	40(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movq	_I2C_CLASS_SPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 24(%rbx)
	movq	_iic_algo@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%r15, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	js	LBB0_19
## %bb.20:
	cmpl	$0, (%rbx)
	leaq	L_.str.10(%rip), %rax
	leaq	L_.str.9(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_21
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_21
LBB0_3:
	movq	_ENXIO@GOTPCREL(%rip), %r12
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_19:
	movl	%eax, %r15d
	cmpq	$0, 16(%rbx)
	jne	LBB0_6
	jmp	LBB0_7
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %r12
	leaq	L_.str.5(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
	subl	(%r12), %r15d
	cmpq	$0, 16(%rbx)
	je	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_iic_interrupt_mode
	movq	16(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_7:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_iounmap
LBB0_9:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_21:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate device data\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"failed to iomap device\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.2:                               ## @.str.2
	.asciz	"using polling mode\n"

	.comm	_iic_force_fast,8,3             ## @iic_force_fast
L_.str.3:                               ## @.str.3
	.asciz	"fast-mode"

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

L_.str.5:                               ## @.str.5
	.asciz	"Unable to get bus frequency\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.6:                               ## @.str.6
	.asciz	"clckdiv = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"IBM IIC"

	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ## @I2C_CLASS_SPD
	.comm	_iic_algo,4,2                   ## @iic_algo
	.comm	_HZ,4,2                         ## @HZ
L_.str.8:                               ## @.str.8
	.asciz	"using %s mode\n"

L_.str.9:                               ## @.str.9
	.asciz	"fast (400 kHz)"

L_.str.10:                              ## @.str.10
	.asciz	"standard (100 kHz)"

	.no_dead_strip	_iic_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iic_probe
_iic_probe:                             ; @iic_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	x20, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x21
	mov	w1, #0
	bl	_of_iomap
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.2:
	add	x0, x19, #68
	bl	_init_waitqueue_head
	mov	x0, x20
	mov	x1, x19
	bl	_iic_request_irq
	str	x0, [x19, #16]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_4:
Lloh5:
	adrp	x8, _iic_force_fast@GOTPAGE
Lloh6:
	ldr	x8, [x8, _iic_force_fast@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
; %bb.5:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_7
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
LBB0_7:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_of_get_property
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x21]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_14
LBB0_9:
	ldr	w0, [x0]
	bl	_iic_clckdiv
	mov	x2, x0
	str	w0, [x19, #64]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	x0, x19
	bl	_iic_dev_init
	add	x22, x19, #24
	str	x20, [x19, #56]
	mov	x0, x21
	bl	_of_node_get
	str	w0, [x19, #48]
	ldr	w0, [x19, #40]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
	mov	x0, x22
	mov	x1, x19
	bl	_i2c_set_adapdata
Lloh18:
	adrp	x8, _I2C_CLASS_HWMON@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _I2C_CLASS_SPD@GOTPAGE
Lloh22:
	ldr	x9, [x9, _I2C_CLASS_SPD@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _iic_algo@GOTPAGE
Lloh25:
	ldr	x9, [x9, _iic_algo@GOTPAGEOFF]
	str	x9, [x19, #32]
Lloh26:
	adrp	x9, _HZ@GOTPAGE
Lloh27:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #24]
	mov	x0, x22
	bl	_i2c_add_adapter
	tbnz	w0, #31, LBB0_13
; %bb.10:
	ldr	w8, [x19]
Lloh29:
	adrp	x9, l_.str.9@PAGE
Lloh30:
	add	x9, x9, l_.str.9@PAGEOFF
Lloh31:
	adrp	x10, l_.str.10@PAGE
Lloh32:
	add	x10, x10, l_.str.10@PAGEOFF
	cmp	w8, #0
	csel	x2, x10, x9, eq
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w21, #0
	b	LBB0_20
LBB0_11:
Lloh35:
	adrp	x1, l_.str@PAGE
Lloh36:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_20
LBB0_12:
Lloh40:
	adrp	x21, _ENXIO@GOTPAGE
Lloh41:
	ldr	x21, [x21, _ENXIO@GOTPAGEOFF]
Lloh42:
	adrp	x1, l_.str.1@PAGE
Lloh43:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x21, x0
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_16
	b	LBB0_17
LBB0_14:
Lloh44:
	adrp	x21, _EINVAL@GOTPAGE
Lloh45:
	ldr	x21, [x21, _EINVAL@GOTPAGEOFF]
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x21]
	neg	w21, w8
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_17
LBB0_16:
	mov	x0, x19
	mov	w1, #0
	bl	_iic_interrupt_mode
	ldr	x0, [x19, #16]
	mov	x1, x19
	bl	_free_irq
LBB0_17:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_19
; %bb.18:
	bl	_iounmap
LBB0_19:
	mov	x0, x19
	bl	_kfree
LBB0_20:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate device data\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"failed to iomap device\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.2:                               ; @.str.2
	.asciz	"using polling mode\n"

	.comm	_iic_force_fast,8,3             ; @iic_force_fast
l_.str.3:                               ; @.str.3
	.asciz	"fast-mode"

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

l_.str.5:                               ; @.str.5
	.asciz	"Unable to get bus frequency\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.6:                               ; @.str.6
	.asciz	"clckdiv = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"IBM IIC"

	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ; @I2C_CLASS_SPD
	.comm	_iic_algo,4,2                   ; @iic_algo
	.comm	_HZ,4,2                         ; @HZ
l_.str.8:                               ; @.str.8
	.asciz	"using %s mode\n"

l_.str.9:                               ; @.str.9
	.asciz	"fast (400 kHz)"

l_.str.10:                              ; @.str.10
	.asciz	"standard (100 kHz)"

	.no_dead_strip	_iic_probe
.subsections_via_symbols
