	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_pca_pf_probe
_i2c_pca_pf_probe:                      ## @i2c_pca_pf_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, %r14
	callq	_dev_get_platdata
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	movl	$0, %r15d
	cmovgl	%eax, %r15d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$128, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 120(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	120(%r13), %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	112(%r13), %rdi
	callq	_init_waitqueue_head
	movq	8(%rbx), %rax
	movq	%rax, 104(%r13)
	movq	%rbx, %rdi
	callq	_resource_size
	movl	%eax, 96(%r13)
	movl	%r15d, (%r13)
	movl	12(%r14), %eax
	movl	%eax, 48(%r13)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r13)
	movl	40(%r13), %edi
	movq	8(%rbx), %rcx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	leaq	56(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, 32(%r13)
	movq	%r14, 24(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r13)
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 88(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	88(%r13), %rdi
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movq	%r13, %rcx
	addq	$8, %rcx
	movq	_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%rcx)
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_device_property_read_u32
	testl	%eax, %eax
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:
	movl	$59000, (%rsi)                  ## imm = 0xE678
LBB0_9:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movl	4(%rcx), %eax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movl	(%rcx), %eax
	movl	%eax, (%rsi)
LBB0_11:
	movq	%r13, 80(%r13)
	movq	_i2c_pca_pf_waitforcompletion@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r13)
	cmpq	$0, 88(%r13)
	jne	LBB0_12
## %bb.13:
	movq	_i2c_pca_pf_dummyreset@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_i2c_pca_pf_resetchip@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	movl	%eax, 68(%r13)
	movq	_IORESOURCE_MEM_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_15
## %bb.16:
	cmpl	$130, %eax
	jne	LBB0_18
## %bb.17:
	movq	_i2c_pca_pf_readbyte16@GOTPCREL(%rip), %rax
	movq	_i2c_pca_pf_writebyte16@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_15:
	movq	_i2c_pca_pf_readbyte32@GOTPCREL(%rip), %rax
	movq	_i2c_pca_pf_writebyte32@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_18:
	movq	_i2c_pca_pf_readbyte8@GOTPCREL(%rip), %rax
	movq	_i2c_pca_pf_writebyte8@GOTPCREL(%rip), %rcx
LBB0_19:
	movl	(%rcx), %ecx
	movl	%ecx, 64(%r13)
	movl	(%rax), %eax
	movl	%eax, 60(%r13)
	testl	%r12d, %r12d
	jle	LBB0_21
## %bb.20:
	movq	_i2c_pca_pf_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	8(%r14), %r8d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
LBB0_21:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_i2c_pca_add_numbered_bus
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_23
## %bb.22:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PCA9564/PCA9665 at 0x%08lx"

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

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
	.comm	_HZ,4,2                         ## @HZ
L_.str.2:                               ## @.str.2
	.asciz	"clock-frequency"

	.comm	_i2c_pca_pf_waitforcompletion,4,2 ## @i2c_pca_pf_waitforcompletion
	.comm	_i2c_pca_pf_resetchip,4,2       ## @i2c_pca_pf_resetchip
	.comm	_i2c_pca_pf_dummyreset,4,2      ## @i2c_pca_pf_dummyreset
	.comm	_IORESOURCE_MEM_TYPE_MASK,4,2   ## @IORESOURCE_MEM_TYPE_MASK
	.comm	_i2c_pca_pf_writebyte32,4,2     ## @i2c_pca_pf_writebyte32
	.comm	_i2c_pca_pf_readbyte32,4,2      ## @i2c_pca_pf_readbyte32
	.comm	_i2c_pca_pf_writebyte16,4,2     ## @i2c_pca_pf_writebyte16
	.comm	_i2c_pca_pf_readbyte16,4,2      ## @i2c_pca_pf_readbyte16
	.comm	_i2c_pca_pf_writebyte8,4,2      ## @i2c_pca_pf_writebyte8
	.comm	_i2c_pca_pf_readbyte8,4,2       ## @i2c_pca_pf_readbyte8
	.comm	_i2c_pca_pf_handler,4,2         ## @i2c_pca_pf_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.3:                               ## @.str.3
	.asciz	"registered.\n"

	.no_dead_strip	_i2c_pca_pf_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_pca_pf_probe
_i2c_pca_pf_probe:                      ; @i2c_pca_pf_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
	bl	_dev_get_platdata
	mov	x23, x0
	ldr	x25, [x19]
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	cmp	w0, #0
	csel	w21, w0, wzr, gt
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #128
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x24, x0
	mov	x0, x19
	mov	x1, x24
	bl	_devm_ioremap_resource
	str	x0, [x20, #120]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x20, #120]
	b	LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	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:
	add	x0, x20, #112
	bl	_init_waitqueue_head
	ldr	x8, [x24, #8]
	str	x8, [x20, #104]
	mov	x0, x24
	bl	_resource_size
	str	w0, [x20, #96]
	str	w21, [x20]
Lloh9:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
	ldr	w9, [x19, #12]
Lloh11:
	ldr	w8, [x8]
	stp	w8, w9, [x20, #44]
	ldr	w0, [x20, #40]
	ldr	x3, [x24, #8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	add	x26, x20, #56
	stp	x19, x26, [x20, #24]
	str	x25, [x20, #16]
Lloh14:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	x0, [x20, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
	ldr	x0, [x20, #88]
LBB0_7:
	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_8:
	add	x25, x20, #8
Lloh19:
	adrp	x8, _HZ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x25]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x26
	bl	_device_property_read_u32
	cbz	w0, LBB0_10
; %bb.9:
	mov	w8, #59000
	str	w8, [x26]
LBB0_10:
	cbz	x23, LBB0_12
; %bb.11:
	ldp	w9, w8, [x23]
	str	w8, [x25]
	str	w9, [x26]
LBB0_12:
Lloh24:
	adrp	x8, _i2c_pca_pf_waitforcompletion@GOTPAGE
Lloh25:
	ldr	x8, [x8, _i2c_pca_pf_waitforcompletion@GOTPAGEOFF]
	str	x20, [x20, #80]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #72]
	ldr	x8, [x20, #88]
Lloh27:
	adrp	x9, _i2c_pca_pf_dummyreset@GOTPAGE
Lloh28:
	ldr	x9, [x9, _i2c_pca_pf_dummyreset@GOTPAGEOFF]
Lloh29:
	adrp	x10, _i2c_pca_pf_resetchip@GOTPAGE
Lloh30:
	ldr	x10, [x10, _i2c_pca_pf_resetchip@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x20, #68]
	ldr	w8, [x24]
Lloh31:
	adrp	x9, _IORESOURCE_MEM_TYPE_MASK@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IORESOURCE_MEM_TYPE_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	and	w8, w9, w8
	cmp	w8, #129
	b.eq	LBB0_15
; %bb.13:
	cmp	w8, #130
	b.ne	LBB0_16
; %bb.14:
Lloh34:
	adrp	x8, _i2c_pca_pf_readbyte16@GOTPAGE
Lloh35:
	ldr	x8, [x8, _i2c_pca_pf_readbyte16@GOTPAGEOFF]
Lloh36:
	adrp	x9, _i2c_pca_pf_writebyte16@GOTPAGE
Lloh37:
	ldr	x9, [x9, _i2c_pca_pf_writebyte16@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
Lloh38:
	adrp	x8, _i2c_pca_pf_readbyte32@GOTPAGE
Lloh39:
	ldr	x8, [x8, _i2c_pca_pf_readbyte32@GOTPAGEOFF]
Lloh40:
	adrp	x9, _i2c_pca_pf_writebyte32@GOTPAGE
Lloh41:
	ldr	x9, [x9, _i2c_pca_pf_writebyte32@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh42:
	adrp	x8, _i2c_pca_pf_readbyte8@GOTPAGE
Lloh43:
	ldr	x8, [x8, _i2c_pca_pf_readbyte8@GOTPAGEOFF]
Lloh44:
	adrp	x9, _i2c_pca_pf_writebyte8@GOTPAGE
Lloh45:
	ldr	x9, [x9, _i2c_pca_pf_writebyte8@GOTPAGEOFF]
LBB0_17:
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w8, w9, [x20, #60]
	cmp	w22, #1
	b.lt	LBB0_19
; %bb.18:
Lloh46:
	adrp	x8, _i2c_pca_pf_handler@GOTPAGE
Lloh47:
	ldr	x8, [x8, _i2c_pca_pf_handler@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
Lloh49:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh50:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh51:
	ldr	w3, [x8]
	ldr	w4, [x19, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x5, x20
	bl	_devm_request_irq
	cbnz	w0, LBB0_4
LBB0_19:
	mov	x0, x25
	bl	_i2c_pca_add_numbered_bus
	cbnz	w0, LBB0_4
; %bb.20:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh52:
	adrp	x1, l_.str.3@PAGE
Lloh53:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PCA9564/PCA9665 at 0x%08lx"

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

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
	.comm	_HZ,4,2                         ; @HZ
l_.str.2:                               ; @.str.2
	.asciz	"clock-frequency"

	.comm	_i2c_pca_pf_waitforcompletion,4,2 ; @i2c_pca_pf_waitforcompletion
	.comm	_i2c_pca_pf_resetchip,4,2       ; @i2c_pca_pf_resetchip
	.comm	_i2c_pca_pf_dummyreset,4,2      ; @i2c_pca_pf_dummyreset
	.comm	_IORESOURCE_MEM_TYPE_MASK,4,2   ; @IORESOURCE_MEM_TYPE_MASK
	.comm	_i2c_pca_pf_writebyte32,4,2     ; @i2c_pca_pf_writebyte32
	.comm	_i2c_pca_pf_readbyte32,4,2      ; @i2c_pca_pf_readbyte32
	.comm	_i2c_pca_pf_writebyte16,4,2     ; @i2c_pca_pf_writebyte16
	.comm	_i2c_pca_pf_readbyte16,4,2      ; @i2c_pca_pf_readbyte16
	.comm	_i2c_pca_pf_writebyte8,4,2      ; @i2c_pca_pf_writebyte8
	.comm	_i2c_pca_pf_readbyte8,4,2       ; @i2c_pca_pf_readbyte8
	.comm	_i2c_pca_pf_handler,4,2         ; @i2c_pca_pf_handler
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.3:                               ; @.str.3
	.asciz	"registered.\n"

	.no_dead_strip	_i2c_pca_pf_probe
.subsections_via_symbols
