	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iop3xx_i2c_probe
_iop3xx_i2c_probe:                      ## @iop3xx_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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movl	(%rbx), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	leaq	4(%r15), %r12
	movq	_GPIOD_ASIS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 80(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	80(%r13), %rdi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_23
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_22:
	movq	%r14, %rdi
	callq	_kfree
LBB0_23:
	negl	%ebx
LBB0_24:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 72(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	72(%r13), %rdi
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_9:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	_IOP3XX_I2C_IO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %edx
	callq	_request_mem_region
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movq	_i2c_id@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	movq	%rcx, 64(%r13)
	movl	(%rbx), %edi
	movq	_IOP3XX_I2C_IO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioremap
	movl	%eax, 4(%r13)
	testl	%eax, %eax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_14
## %bb.15:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	movq	_iop3xx_i2c_irq_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	8(%r15), %ecx
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%edx, %edx
	movq	%r13, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_25
## %bb.18:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_10:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_12:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_21
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IOP3XX_I2C_IO_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_20
LBB0_16:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_19:
	movq	_IOP3XX_I2C_IO_SIZE@GOTPCREL(%rip), %r15
	movl	(%rax), %ebx
	movl	4(%r13), %edi
	callq	_iounmap
LBB0_20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_release_mem_region
LBB0_21:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_22
LBB0_25:
	movl	60(%r14), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%r15), %edi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_strlen
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_memcpy
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_I2C_CLASS_HWMON@GOTPCREL(%rip), %rax
	movq	_I2C_CLASS_SPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	%r12, 48(%r14)
	movl	4(%r15), %eax
	movl	%eax, 40(%r14)
	movl	(%r15), %eax
	movl	%eax, 36(%r14)
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_iop3xx_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r14)
	leaq	20(%r13), %rdi
	callq	_init_waitqueue_head
	movq	%r13, %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	movq	%r13, %rdi
	callq	_iop3xx_i2c_reset
	movq	%r13, %rdi
	callq	_iop3xx_i2c_enable
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r13, 8(%r14)
	movq	%r14, %rdi
	callq	_i2c_add_numbered_adapter
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scl"

	.comm	_GPIOD_ASIS,4,2                 ## @GPIOD_ASIS
L_.str.1:                               ## @.str.1
	.asciz	"sda"

	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IOP3XX_I2C_IO_SIZE,4,2         ## @IOP3XX_I2C_IO_SIZE
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_i2c_id,4,2                     ## @i2c_id
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_iop3xx_i2c_irq_handler,4,2     ## @iop3xx_i2c_irq_handler
	.comm	_EIO,4,2                        ## @EIO
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ## @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ## @I2C_CLASS_SPD
	.comm	_HZ,4,2                         ## @HZ
	.comm	_iop3xx_i2c_algo,4,2            ## @iop3xx_i2c_algo
	.no_dead_strip	_iop3xx_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iop3xx_i2c_probe
_iop3xx_i2c_probe:                      ; @iop3xx_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	x21, x0
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w1, [x20]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	add	x22, x21, #4
Lloh2:
	adrp	x23, _GPIOD_ASIS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GPIOD_ASIS@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #80]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x0, [x20, #80]
	b	LBB0_11
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
LBB0_6:
	mov	x0, x19
	bl	_kfree
LBB0_7:
	neg	w0, w21
LBB0_8:
	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_9:
	ldr	w2, [x23]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x0, [x20, #72]
LBB0_11:
	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_12:
Lloh14:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_18
; %bb.13:
	mov	x23, x0
	ldr	w0, [x0]
Lloh17:
	adrp	x24, _IOP3XX_I2C_IO_SIZE@GOTPAGE
Lloh18:
	ldr	x24, [x24, _IOP3XX_I2C_IO_SIZE@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x21, #8]
	bl	_request_mem_region
	cbz	w0, LBB0_19
; %bb.14:
Lloh19:
	adrp	x8, _i2c_id@GOTPAGE
Lloh20:
	ldr	x8, [x8, _i2c_id@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	str	x9, [x20, #64]
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_ioremap
	str	w0, [x20, #4]
	cbz	w0, LBB0_20
; %bb.15:
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	tbnz	w0, #31, LBB0_21
; %bb.16:
Lloh21:
	adrp	x8, _iop3xx_i2c_irq_handler@GOTPAGE
Lloh22:
	ldr	x8, [x8, _iop3xx_i2c_irq_handler@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w3, [x21, #8]
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	cbz	w0, LBB0_25
; %bb.17:
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_22
LBB0_18:
Lloh26:
	adrp	x8, _ENODEV@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh28:
	ldr	w21, [x8]
	b	LBB0_24
LBB0_19:
Lloh29:
	adrp	x8, _EBUSY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
	b	LBB0_24
LBB0_20:
Lloh32:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh34:
	ldr	w21, [x8]
	b	LBB0_23
LBB0_21:
Lloh35:
	adrp	x8, _ENXIO@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_22:
	ldr	w21, [x8]
	ldr	w0, [x20, #4]
	bl	_iounmap
LBB0_23:
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_release_mem_region
LBB0_24:
	mov	x0, x20
	bl	_kfree
	b	LBB0_6
LBB0_25:
	ldr	w23, [x19, #60]
	ldr	w24, [x21, #8]
	mov	x0, x24
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_memcpy
Lloh37:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _I2C_CLASS_HWMON@GOTPAGE
Lloh41:
	ldr	x9, [x9, _I2C_CLASS_HWMON@GOTPAGEOFF]
	str	w8, [x19, #56]
Lloh42:
	ldr	w8, [x9]
Lloh43:
	adrp	x9, _I2C_CLASS_SPD@GOTPAGE
Lloh44:
	ldr	x9, [x9, _I2C_CLASS_SPD@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	str	x22, [x19, #48]
	ldr	d0, [x21]
	stur	d0, [x19, #36]
Lloh46:
	adrp	x8, _HZ@GOTPAGE
Lloh47:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh49:
	adrp	x8, _iop3xx_i2c_algo@GOTPAGE
Lloh50:
	ldr	x8, [x8, _iop3xx_i2c_algo@GOTPAGEOFF]
	str	x8, [x19, #24]
	add	x0, x20, #20
	bl	_init_waitqueue_head
	add	x0, x20, #16
	bl	_spin_lock_init
	mov	x0, x20
	bl	_iop3xx_i2c_reset
	mov	x0, x20
	bl	_iop3xx_i2c_enable
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_i2c_add_numbered_adapter
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scl"

	.comm	_GPIOD_ASIS,4,2                 ; @GPIOD_ASIS
l_.str.1:                               ; @.str.1
	.asciz	"sda"

	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IOP3XX_I2C_IO_SIZE,4,2         ; @IOP3XX_I2C_IO_SIZE
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_i2c_id,4,2                     ; @i2c_id
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_iop3xx_i2c_irq_handler,4,2     ; @iop3xx_i2c_irq_handler
	.comm	_EIO,4,2                        ; @EIO
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_I2C_CLASS_HWMON,4,2            ; @I2C_CLASS_HWMON
	.comm	_I2C_CLASS_SPD,4,2              ; @I2C_CLASS_SPD
	.comm	_HZ,4,2                         ; @HZ
	.comm	_iop3xx_i2c_algo,4,2            ; @iop3xx_i2c_algo
	.no_dead_strip	_iop3xx_i2c_probe
.subsections_via_symbols
