	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function htcpld_core_probe
_htcpld_core_probe:                     ## @htcpld_core_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	leaq	4(%rdi), %r12
	movq	%r12, %rdi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%rax), %edi
	movl	%edi, 16(%r15)
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_htcpld_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r13), %r8d
	xorl	%esi, %esi
	movq	%r15, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_6
## %bb.18:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_17
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_6:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_device_init_wakeup
LBB0_7:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r13, %rdi
	callq	_htcpld_setup_chips
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	callq	_gpio_request
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	$0, 8(%r15)
	jmp	LBB0_12
LBB0_11:
	movq	8(%r14), %rdi
	movq	%rdi, 8(%r15)
	movl	$1, %esi
	callq	_gpio_set_value
LBB0_12:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	callq	_gpio_request
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_warn
	movq	$0, (%r15)
	jmp	LBB0_16
LBB0_15:
	movq	(%r14), %rdi
	movq	%rdi, (%r15)
	xorl	%esi, %esi
	callq	_gpio_set_value
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Platform data not found for htcpld core!\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_htcpld_handler,4,2             ## @htcpld_handler
L_.str.1:                               ## @.str.1
	.asciz	"Unable to setup chained irq handler: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"htcpld-core"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to request int_reset_gpio_hi -- interrupts may not work\n"

L_.str.4:                               ## @.str.4
	.asciz	"Unable to request int_reset_gpio_lo -- interrupts may not work\n"

L_.str.5:                               ## @.str.5
	.asciz	"Initialized successfully\n"

	.no_dead_strip	_htcpld_core_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function htcpld_core_probe
_htcpld_core_probe:                     ; @htcpld_core_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_dev_get_platdata
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x8, _IORESOURCE_IRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_IRQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w0, [x0]
	str	w0, [x21, #16]
Lloh6:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh15:
	adrp	x8, _htcpld_handler@GOTPAGE
Lloh16:
	ldr	x8, [x8, _htcpld_handler@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	ldr	w4, [x22]
	mov	x1, #0
	mov	x5, x21
	bl	_request_threaded_irq
	cbz	w0, LBB0_9
; %bb.4:
	mov	x23, x0
	str	x23, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	b	LBB0_8
LBB0_5:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh22:
	adrp	x8, _ENXIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_8:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	bl	_device_init_wakeup
LBB0_10:
	mov	x0, x22
	mov	x1, x21
	bl	_platform_set_drvdata
	mov	x0, x22
	bl	_htcpld_setup_chips
	mov	x23, x0
	cbnz	w0, LBB0_8
; %bb.11:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_14
; %bb.12:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_gpio_request
	cbz	w0, LBB0_17
; %bb.13:
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	str	xzr, [x21, #8]
LBB0_14:
	ldr	x0, [x20]
	cbz	x0, LBB0_19
LBB0_15:
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_gpio_request
	cbz	w0, LBB0_18
; %bb.16:
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	str	xzr, [x21]
	b	LBB0_19
LBB0_17:
	ldr	x0, [x20, #8]
	str	x0, [x21, #8]
	mov	w1, #1
	bl	_gpio_set_value
	ldr	x0, [x20]
	cbnz	x0, LBB0_15
	b	LBB0_19
LBB0_18:
	ldr	x0, [x20]
	str	x0, [x21]
	mov	w1, #0
	bl	_gpio_set_value
LBB0_19:
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w23, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Platform data not found for htcpld core!\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_htcpld_handler,4,2             ; @htcpld_handler
l_.str.1:                               ; @.str.1
	.asciz	"Unable to setup chained irq handler: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"htcpld-core"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to request int_reset_gpio_hi -- interrupts may not work\n"

l_.str.4:                               ; @.str.4
	.asciz	"Unable to request int_reset_gpio_lo -- interrupts may not work\n"

l_.str.5:                               ; @.str.5
	.asciz	"Initialized successfully\n"

	.no_dead_strip	_htcpld_core_probe
.subsections_via_symbols
