	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_gpio_probe
_i2c_gpio_probe:                        ## @i2c_gpio_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, %rbx
	leaq	8(%rdi), %r15
	movq	8(%rdi), %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$128, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	leaq	16(%rax), %r12
	testq	%r14, %r14
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_of_i2c_gpio_get_props
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r15, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	_dev_get_platdata
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$32, %edx
	callq	_memcpy
LBB0_6:
	cmpq	$0, 40(%rbx)
	jne	LBB0_7
## %bb.8:
	movq	_GPIOD_OUT_HIGH_OPEN_DRAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_i2c_gpio_get_desc
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	8(%rbx), %rdi
	jmp	LBB0_11
LBB0_12:
	cmpq	$0, 32(%rbx)
	jne	LBB0_13
## %bb.14:
	movq	_GPIOD_OUT_HIGH_OPEN_DRAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_13:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_i2c_gpio_get_desc
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%rbx), %rdi
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_17:
	leaq	48(%r13), %r14
	movq	8(%rbx), %rdi
	callq	_gpiod_cansleep
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	(%rbx), %rdi
	callq	_gpiod_cansleep
	testq	%rax, %rax
	je	LBB0_20
LBB0_19:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
LBB0_21:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	_i2c_gpio_setsda_val@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
	movq	_i2c_gpio_setscl_val@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%rbx)
	cmpq	$0, 24(%rbx)
	je	LBB0_22
## %bb.23:
	movq	_i2c_gpio_getsda@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movl	16(%rbx), %ecx
	testl	%ecx, %ecx
	movl	$50, %eax
	jmp	LBB0_24
LBB0_22:
	movq	_i2c_gpio_getscl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 76(%rbx)
	movq	_i2c_gpio_getsda@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%rbx)
	movl	16(%rbx), %ecx
	testl	%ecx, %ecx
	movl	$5, %eax
LBB0_24:
	cmovnel	%ecx, %eax
	movl	%eax, 52(%rbx)
	movl	20(%rbx), %eax
	testl	%eax, %eax
	jne	LBB0_26
## %bb.25:
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
LBB0_26:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	addq	$88, %r13
	movl	%eax, 56(%rbx)
	movq	%rbx, 64(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 124(%rbx)
	movl	120(%rbx), %r12d
	testq	%rdx, %rdx
	je	LBB0_28
## %bb.27:
	movq	%r15, %rdi
	callq	_dev_name
	movl	%r12d, %edi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_28:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %ecx
	leaq	L_.str.3(%rip), %rdx
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_snprintf
LBB0_29:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 112(%rbx)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movq	_I2C_CLASS_SPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 88(%rbx)
	movq	%r15, 104(%rbx)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 96(%rbx)
	movl	(%r14), %eax
	movl	%eax, 92(%rbx)
	movq	%r13, %rdi
	callq	_i2c_bit_add_numbered_bus
	testl	%eax, %eax
	jne	LBB0_31
## %bb.30:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	8(%rbx), %rdi
	callq	_desc_to_gpio
	movl	%eax, %r12d
	movq	(%rbx), %rdi
	callq	_desc_to_gpio
	cmpq	$0, 24(%rbx)
	leaq	L_.str.6(%rip), %rcx
	leaq	L_.str.5(%rip), %r8
	cmoveq	%rcx, %r8
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_info
	movq	%r14, %rdi
	callq	_i2c_gpio_fault_injector_init
	xorl	%eax, %eax
	jmp	LBB0_31
LBB0_20:
	movl	$1, (%r14)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
	.comm	_GPIOD_OUT_HIGH_OPEN_DRAIN,4,2  ## @GPIOD_OUT_HIGH_OPEN_DRAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sda"

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

L_.str.2:                               ## @.str.2
	.asciz	"Slow GPIO pins might wreak havoc into I2C/SMBus bus timing"

	.comm	_i2c_gpio_setsda_val,4,2        ## @i2c_gpio_setsda_val
	.comm	_i2c_gpio_setscl_val,4,2        ## @i2c_gpio_setscl_val
	.comm	_i2c_gpio_getscl,4,2            ## @i2c_gpio_getscl
	.comm	_i2c_gpio_getsda,4,2            ## @i2c_gpio_getsda
	.comm	_HZ,4,2                         ## @HZ
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.3:                               ## @.str.3
	.asciz	"i2c-gpio%d"

	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ## @I2C_CLASS_SPD
L_.str.4:                               ## @.str.4
	.asciz	"using lines %u (SDA) and %u (SCL%s)\n"

L_.str.5:                               ## @.str.5
	.asciz	", no clock stretching"

L_.str.6:                               ## @.str.6
	.space	1

	.no_dead_strip	_i2c_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_gpio_probe
_i2c_gpio_probe:                        ; @i2c_gpio_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	x20, x0
	ldr	x22, [x20, #8]!
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #128
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	add	x23, x0, #16
	cbz	x22, LBB0_5
; %bb.2:
	mov	x0, x22
	mov	x1, x23
	bl	_of_i2c_gpio_get_props
	b	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x0, x20
	bl	_dev_get_platdata
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_dev_get_platdata
	mov	x1, x0
	mov	x0, x23
	mov	w2, #32
	bl	_memcpy
LBB0_7:
Lloh6:
	adrp	x23, _GPIOD_OUT_HIGH_OPEN_DRAIN@GOTPAGE
Lloh7:
	ldr	x23, [x23, _GPIOD_OUT_HIGH_OPEN_DRAIN@GOTPAGEOFF]
	ldr	x8, [x21, #40]
Lloh8:
	adrp	x24, _GPIOD_OUT_HIGH@GOTPAGE
Lloh9:
	ldr	x24, [x24, _GPIOD_OUT_HIGH@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x23, x24, eq
	ldr	w3, [x8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #0
	bl	_i2c_gpio_get_desc
	str	x0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x21, #8]
	b	LBB0_11
LBB0_9:
	ldr	x8, [x21, #32]
	cmp	x8, #0
	csel	x8, x23, x24, eq
	ldr	w3, [x8]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w2, #1
	bl	_i2c_gpio_get_desc
	str	x0, [x21]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x0, [x21]
LBB0_11:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_12:
	add	x25, x21, #48
	ldr	x0, [x21, #8]
	bl	_gpiod_cansleep
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	x0, [x21]
	bl	_gpiod_cansleep
	cbz	x0, LBB0_25
LBB0_14:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_15:
Lloh16:
	adrp	x8, _i2c_gpio_setsda_val@GOTPAGE
Lloh17:
	ldr	x8, [x8, _i2c_gpio_setsda_val@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _i2c_gpio_setscl_val@GOTPAGE
Lloh20:
	ldr	x9, [x9, _i2c_gpio_setscl_val@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #80]
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_17
; %bb.16:
Lloh22:
	adrp	x8, _i2c_gpio_getsda@GOTPAGE
Lloh23:
	ldr	x8, [x8, _i2c_gpio_getsda@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x21, #72]
	ldr	w8, [x21, #16]
	mov	w9, #50
	b	LBB0_18
LBB0_17:
Lloh25:
	adrp	x8, _i2c_gpio_getscl@GOTPAGE
Lloh26:
	ldr	x8, [x8, _i2c_gpio_getscl@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _i2c_gpio_getsda@GOTPAGE
Lloh29:
	ldr	x9, [x9, _i2c_gpio_getsda@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #72]
	ldr	w8, [x21, #16]
	mov	w9, #5
LBB0_18:
	cmp	w8, #0
	csel	w8, w9, w8, eq
	add	x23, x21, #88
	str	w8, [x21, #52]
	ldr	w8, [x21, #20]
	cbnz	w8, LBB0_20
; %bb.19:
Lloh31:
	adrp	x8, _HZ@GOTPAGE
Lloh32:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh33:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
LBB0_20:
	str	w8, [x21, #56]
	str	x21, [x21, #64]
Lloh34:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x21, #124]
	ldr	w24, [x21, #120]
	cbz	x22, LBB0_22
; %bb.21:
	mov	x0, x20
	bl	_dev_name
	mov	x1, x0
	mov	x0, x24
	mov	w2, #4
	bl	_strlcpy
	b	LBB0_23
LBB0_22:
	ldr	w3, [x19]
Lloh37:
	adrp	x2, l_.str.3@PAGE
Lloh38:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x24
	mov	w1, #4
	bl	_snprintf
LBB0_23:
	str	x25, [x21, #112]
Lloh39:
	adrp	x8, _I2C_CLASS_HWMON@GOTPAGE
Lloh40:
	ldr	x8, [x8, _I2C_CLASS_HWMON@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _I2C_CLASS_SPD@GOTPAGE
Lloh43:
	ldr	x9, [x9, _I2C_CLASS_SPD@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	orr	w8, w9, w8
	stp	x22, x20, [x21, #96]
	ldr	w9, [x19]
	stp	w8, w9, [x21, #88]
	mov	x0, x23
	bl	_i2c_bit_add_numbered_bus
	cbnz	w0, LBB0_4
; %bb.24:
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	ldr	x0, [x21, #8]
	bl	_desc_to_gpio
	mov	x22, x0
	ldr	x0, [x21]
	bl	_desc_to_gpio
	mov	x3, x0
	ldr	x8, [x21, #24]
Lloh45:
	adrp	x9, l_.str.5@PAGE
Lloh46:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh47:
	adrp	x10, l_.str.6@PAGE
Lloh48:
	add	x10, x10, l_.str.6@PAGEOFF
	cmp	x8, #0
	csel	x4, x10, x9, eq
Lloh49:
	adrp	x1, l_.str.4@PAGE
Lloh50:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_info
	mov	x0, x19
	bl	_i2c_gpio_fault_injector_init
	mov	w0, #0
	b	LBB0_4
LBB0_25:
	mov	w8, #1
	str	w8, [x25]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
	.comm	_GPIOD_OUT_HIGH_OPEN_DRAIN,4,2  ; @GPIOD_OUT_HIGH_OPEN_DRAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sda"

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

l_.str.2:                               ; @.str.2
	.asciz	"Slow GPIO pins might wreak havoc into I2C/SMBus bus timing"

	.comm	_i2c_gpio_setsda_val,4,2        ; @i2c_gpio_setsda_val
	.comm	_i2c_gpio_setscl_val,4,2        ; @i2c_gpio_setscl_val
	.comm	_i2c_gpio_getscl,4,2            ; @i2c_gpio_getscl
	.comm	_i2c_gpio_getsda,4,2            ; @i2c_gpio_getsda
	.comm	_HZ,4,2                         ; @HZ
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.3:                               ; @.str.3
	.asciz	"i2c-gpio%d"

	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ; @I2C_CLASS_SPD
l_.str.4:                               ; @.str.4
	.asciz	"using lines %u (SDA) and %u (SCL%s)\n"

l_.str.5:                               ; @.str.5
	.asciz	", no clock stretching"

l_.str.6:                               ; @.str.6
	.space	1

	.no_dead_strip	_i2c_gpio_probe
.subsections_via_symbols
