	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plgpio_probe
_plgpio_probe:                          ## @plgpio_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, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movl	%eax, 72(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.21:
	movl	72(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_20
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_plgpio_probe_dt
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdi
	callq	_dev_err
LBB0_20:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_warn
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	leaq	64(%r15), %rdi
	callq	_spin_lock_init
	movl	$-1, 8(%r14)
	movq	_plgpio_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r14)
	movq	_plgpio_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r14)
	movq	_plgpio_direction_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_plgpio_direction_output@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movq	_plgpio_get_value@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r14)
	movq	_plgpio_set_value@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%r14)
	movq	%rbx, %rdi
	callq	_dev_name
	movl	%eax, 32(%r14)
	movq	%rbx, 24(%r14)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	(%rbx), %eax
	movl	%eax, 12(%r14)
	movl	(%r14), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
LBB0_11:
	addq	$8, %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
LBB0_18:
	movl	(%r14), %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_20
## %bb.19:
	movl	(%r14), %edi
	callq	_clk_unprepare
	jmp	LBB0_20
LBB0_9:
	movl	(%r14), %edi
	callq	_clk_prepare
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_13:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	testl	%eax, %eax
	js	LBB0_14
## %bb.16:
	movl	%eax, %r13d
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_plgpio_irqchip@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_gpiochip_irqchip_add
	testl	%eax, %eax
	je	LBB0_22
## %bb.17:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %r12d
	callq	_dev_err
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_info
	movq	%r15, %rdi
	callq	_gpiochip_remove
	jmp	LBB0_18
LBB0_14:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_22:
	movq	_plgpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_plgpio_irqchip@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_gpiochip_set_chained_irqchip
	leaq	L_.str.6(%rip), %rsi
LBB0_15:
	movq	%rbx, %rdi
	callq	_dev_info
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DT probe failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"clk_get() failed, work without it\n"

	.comm	_plgpio_request,4,2             ## @plgpio_request
	.comm	_plgpio_free,4,2                ## @plgpio_free
	.comm	_plgpio_direction_input,4,2     ## @plgpio_direction_input
	.comm	_plgpio_direction_output,4,2    ## @plgpio_direction_output
	.comm	_plgpio_get_value,4,2           ## @plgpio_get_value
	.comm	_plgpio_set_value,4,2           ## @plgpio_set_value
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.2:                               ## @.str.2
	.asciz	"clk prepare failed\n"

L_.str.3:                               ## @.str.3
	.asciz	"unable to add gpio chip\n"

L_.str.4:                               ## @.str.4
	.asciz	"PLGPIO registered without IRQs\n"

	.comm	_plgpio_irqchip,4,2             ## @plgpio_irqchip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
L_.str.5:                               ## @.str.5
	.asciz	"failed to add irqchip to gpiochip\n"

	.comm	_plgpio_irq_handler,4,2         ## @plgpio_irq_handler
L_.str.6:                               ## @.str.6
	.asciz	"PLGPIO registered with IRQs\n"

L_.str.7:                               ## @.str.7
	.asciz	"Remove gpiochip\n"

	.comm	_MAX_GPIO_PER_REG,4,2           ## @MAX_GPIO_PER_REG
	.no_dead_strip	_plgpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plgpio_probe
_plgpio_probe:                          ; @plgpio_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	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #80
	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	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	w0, [x20, #72]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #72]
	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_3:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_plgpio_probe_dt
	cbz	w0, LBB0_8
; %bb.5:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_dev_err
LBB0_7:
	mov	x0, x22
	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_8:
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x0, x20, #64
	bl	_spin_lock_init
	mov	w8, #-1
	mov	x21, x20
	str	w8, [x21, #8]!
Lloh13:
	adrp	x8, _plgpio_request@GOTPAGE
Lloh14:
	ldr	x8, [x8, _plgpio_request@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _plgpio_free@GOTPAGE
Lloh17:
	ldr	x9, [x9, _plgpio_free@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #52]
Lloh19:
	adrp	x8, _plgpio_direction_input@GOTPAGE
Lloh20:
	ldr	x8, [x8, _plgpio_direction_input@GOTPAGEOFF]
Lloh21:
	adrp	x9, _plgpio_direction_output@GOTPAGE
Lloh22:
	ldr	x9, [x9, _plgpio_direction_output@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #44]
Lloh25:
	adrp	x8, _plgpio_get_value@GOTPAGE
Lloh26:
	ldr	x8, [x8, _plgpio_get_value@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _plgpio_set_value@GOTPAGE
Lloh29:
	ldr	x9, [x9, _plgpio_set_value@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #36]
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #32]
Lloh31:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
	str	x19, [x20, #24]
Lloh33:
	ldr	w8, [x8]
	ldr	w9, [x19]
	stp	w9, w8, [x20, #12]
	ldr	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_15
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	bl	_gpiochip_add_data
	cbz	w0, LBB0_17
; %bb.12:
	mov	x22, x0
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_13:
	ldr	w0, [x20]
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.14:
	ldr	w0, [x20]
	bl	_clk_unprepare
	b	LBB0_7
LBB0_15:
	ldr	w0, [x20]
	bl	_clk_prepare
	cbz	w0, LBB0_11
; %bb.16:
	mov	x22, x0
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_17:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	tbnz	w0, #31, LBB0_20
; %bb.18:
	mov	x23, x0
Lloh38:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh39:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
Lloh41:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh43:
	ldr	w4, [x8]
Lloh44:
	adrp	x1, _plgpio_irqchip@GOTPAGE
Lloh45:
	ldr	x1, [x1, _plgpio_irqchip@GOTPAGEOFF]
	mov	x0, x21
	mov	w2, #0
	bl	_gpiochip_irqchip_add
	mov	x22, x0
	cbz	w0, LBB0_21
; %bb.19:
Lloh46:
	adrp	x1, l_.str.5@PAGE
Lloh47:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh48:
	adrp	x1, l_.str.7@PAGE
Lloh49:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x21
	bl	_gpiochip_remove
	b	LBB0_13
LBB0_20:
Lloh50:
	adrp	x1, l_.str.4@PAGE
Lloh51:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w22, #0
	b	LBB0_7
LBB0_21:
Lloh52:
	adrp	x8, _plgpio_irq_handler@GOTPAGE
Lloh53:
	ldr	x8, [x8, _plgpio_irq_handler@GOTPAGEOFF]
Lloh54:
	ldr	w3, [x8]
Lloh55:
	adrp	x1, _plgpio_irqchip@GOTPAGE
Lloh56:
	ldr	x1, [x1, _plgpio_irqchip@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, x23
	bl	_gpiochip_set_chained_irqchip
Lloh57:
	adrp	x1, l_.str.6@PAGE
Lloh58:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh23
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DT probe failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"clk_get() failed, work without it\n"

	.comm	_plgpio_request,4,2             ; @plgpio_request
	.comm	_plgpio_free,4,2                ; @plgpio_free
	.comm	_plgpio_direction_input,4,2     ; @plgpio_direction_input
	.comm	_plgpio_direction_output,4,2    ; @plgpio_direction_output
	.comm	_plgpio_get_value,4,2           ; @plgpio_get_value
	.comm	_plgpio_set_value,4,2           ; @plgpio_set_value
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.2:                               ; @.str.2
	.asciz	"clk prepare failed\n"

l_.str.3:                               ; @.str.3
	.asciz	"unable to add gpio chip\n"

l_.str.4:                               ; @.str.4
	.asciz	"PLGPIO registered without IRQs\n"

	.comm	_plgpio_irqchip,4,2             ; @plgpio_irqchip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
l_.str.5:                               ; @.str.5
	.asciz	"failed to add irqchip to gpiochip\n"

	.comm	_plgpio_irq_handler,4,2         ; @plgpio_irq_handler
l_.str.6:                               ; @.str.6
	.asciz	"PLGPIO registered with IRQs\n"

l_.str.7:                               ; @.str.7
	.asciz	"Remove gpiochip\n"

	.comm	_MAX_GPIO_PER_REG,4,2           ; @MAX_GPIO_PER_REG
	.no_dead_strip	_plgpio_probe
.subsections_via_symbols
