	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crystalcove_gpio_probe
_crystalcove_gpio_probe:                ## @crystalcove_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r14d
	movq	(%r15), %r12
	movq	%r12, %rdi
	callq	_dev_get_drvdata
	testl	%r14d, %r14d
	js	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	addq	$52, %rdi
	callq	_mutex_init
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_crystalcove_gpio_dir_in@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_crystalcove_gpio_dir_out@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_crystalcove_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_crystalcove_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movl	$-1, (%rbx)
	movq	_CRYSTALCOVE_VGPIO_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	$1, 4(%rbx)
	movq	%r12, 16(%rbx)
	movq	_crystalcove_gpio_dbg_show@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	(%r13), %eax
	movl	%eax, 48(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_warn
	jmp	LBB0_9
LBB0_1:
	movl	%r14d, %r12d
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_9
LBB0_6:
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_crystalcove_irqchip@GOTPCREL(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_gpiochip_irqchip_add_nested
	movq	_crystalcove_gpio_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_KBUILD_MODNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%rbx, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_warn
	movl	%r13d, %r12d
	jmp	LBB0_9
LBB0_8:
	movq	_crystalcove_irqchip@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_gpiochip_set_nested_irqchip
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_KBUILD_MODNAME,4,2             ## @KBUILD_MODNAME
	.comm	_crystalcove_gpio_dir_in,4,2    ## @crystalcove_gpio_dir_in
	.comm	_crystalcove_gpio_dir_out,4,2   ## @crystalcove_gpio_dir_out
	.comm	_crystalcove_gpio_get,4,2       ## @crystalcove_gpio_get
	.comm	_crystalcove_gpio_set,4,2       ## @crystalcove_gpio_set
	.comm	_CRYSTALCOVE_VGPIO_NUM,4,2      ## @CRYSTALCOVE_VGPIO_NUM
	.comm	_crystalcove_gpio_dbg_show,4,2  ## @crystalcove_gpio_dbg_show
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"add gpio chip error: %d\n"

	.comm	_crystalcove_irqchip,4,2        ## @crystalcove_irqchip
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_crystalcove_gpio_irq_handler,4,2 ## @crystalcove_gpio_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.1:                               ## @.str.1
	.asciz	"request irq failed: %d\n"

	.no_dead_strip	_crystalcove_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function crystalcove_gpio_probe
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_crystalcove_gpio_probe:                ; @crystalcove_gpio_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	x20, x0
	mov	w1, #0
	bl	_platform_get_irq
	mov	x19, x0
	ldr	x22, [x20]
	mov	x0, x22
	bl	_dev_get_drvdata
	tbnz	w19, #31, LBB0_8
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_platform_set_drvdata
	add	x0, x21, #52
	bl	_mutex_init
Lloh3:
	adrp	x24, _KBUILD_MODNAME@GOTPAGE
Lloh4:
	ldr	x24, [x24, _KBUILD_MODNAME@GOTPAGEOFF]
Lloh5:
	adrp	x8, _crystalcove_gpio_dir_in@GOTPAGE
Lloh6:
	ldr	x8, [x8, _crystalcove_gpio_dir_in@GOTPAGEOFF]
	ldr	w9, [x24]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w9, [x21, #40]
Lloh8:
	adrp	x8, _crystalcove_gpio_dir_out@GOTPAGE
Lloh9:
	ldr	x8, [x8, _crystalcove_gpio_dir_out@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _crystalcove_gpio_get@GOTPAGE
Lloh12:
	ldr	x9, [x9, _crystalcove_gpio_get@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #32]
Lloh14:
	adrp	x8, _crystalcove_gpio_set@GOTPAGE
Lloh15:
	ldr	x8, [x8, _crystalcove_gpio_set@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, lCPI0_0@PAGE
Lloh18:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x21]
Lloh19:
	adrp	x9, _CRYSTALCOVE_VGPIO_NUM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _CRYSTALCOVE_VGPIO_NUM@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #24]
	str	x22, [x21, #16]
Lloh22:
	adrp	x8, _crystalcove_gpio_dbg_show@GOTPAGE
Lloh23:
	ldr	x8, [x8, _crystalcove_gpio_dbg_show@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldr	w8, [x23]
	str	w8, [x21, #48]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x21
	bl	_devm_gpiochip_add_data
	cbz	w0, LBB0_5
; %bb.3:
	mov	x22, x0
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_8
LBB0_5:
Lloh30:
	adrp	x8, _handle_simple_irq@GOTPAGE
Lloh31:
	ldr	x8, [x8, _handle_simple_irq@GOTPAGEOFF]
Lloh32:
	ldr	w3, [x8]
Lloh33:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh35:
	ldr	w4, [x8]
Lloh36:
	adrp	x1, _crystalcove_irqchip@GOTPAGE
Lloh37:
	ldr	x1, [x1, _crystalcove_irqchip@GOTPAGEOFF]
	mov	x0, x21
	mov	w2, #0
	bl	_gpiochip_irqchip_add_nested
Lloh38:
	adrp	x8, _crystalcove_gpio_irq_handler@GOTPAGE
Lloh39:
	ldr	x8, [x8, _crystalcove_gpio_irq_handler@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
Lloh41:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	ldr	w4, [x24]
	mov	x0, x19
	mov	x1, #0
	mov	x5, x21
	bl	_request_threaded_irq
	cbz	w0, LBB0_9
; %bb.6:
	mov	x22, x0
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x20
	mov	x2, x22
	bl	_dev_warn
	mov	x19, x22
LBB0_8:
	mov	x0, x19
	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:
Lloh46:
	adrp	x1, _crystalcove_irqchip@GOTPAGE
Lloh47:
	ldr	x1, [x1, _crystalcove_irqchip@GOTPAGEOFF]
	mov	x0, x21
	mov	x2, x19
	bl	_gpiochip_set_nested_irqchip
	mov	w19, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdrp	Lloh17, Lloh19
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_KBUILD_MODNAME,4,2             ; @KBUILD_MODNAME
	.comm	_crystalcove_gpio_dir_in,4,2    ; @crystalcove_gpio_dir_in
	.comm	_crystalcove_gpio_dir_out,4,2   ; @crystalcove_gpio_dir_out
	.comm	_crystalcove_gpio_get,4,2       ; @crystalcove_gpio_get
	.comm	_crystalcove_gpio_set,4,2       ; @crystalcove_gpio_set
	.comm	_CRYSTALCOVE_VGPIO_NUM,4,2      ; @CRYSTALCOVE_VGPIO_NUM
	.comm	_crystalcove_gpio_dbg_show,4,2  ; @crystalcove_gpio_dbg_show
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"add gpio chip error: %d\n"

	.comm	_crystalcove_irqchip,4,2        ; @crystalcove_irqchip
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_crystalcove_gpio_irq_handler,4,2 ; @crystalcove_gpio_irq_handler
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.1:                               ; @.str.1
	.asciz	"request irq failed: %d\n"

	.no_dead_strip	_crystalcove_gpio_probe
.subsections_via_symbols
