	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zx_gpio_probe
_zx_gpio_probe:                         ## @zx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movl	$112, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 96(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	96(%rbx), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	addq	$104, %rdi
	callq	_raw_spin_lock_init
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_gpiochip_generic_request@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	movq	_gpiochip_generic_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%rbx)
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_alias_get_id
	movq	_zx_direction_input@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 80(%rbx)
	movq	_zx_direction_output@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 76(%rbx)
	movq	_zx_get_value@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 72(%rbx)
	movq	_zx_set_value@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 68(%rbx)
	movq	_ZX_GPIO_NR@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	movl	%eax, (%rbx)
	movl	(%rcx), %eax
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 64(%rbx)
	movq	%r14, 56(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_ZX_GPIO_IM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	96(%rbx), %rsi
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_writew_relaxed
	movq	_ZX_GPIO_IE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	96(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writew_relaxed
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movq	_zx_irqchip@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rbx)
	movq	_zx_irq_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	$1, 8(%rbx)
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.7:
	movl	%r15d, (%rax)
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_handle_simple_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_gpiochip_add_data
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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	"gpio-ranges"

	.comm	_gpiochip_generic_request,4,2   ## @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ## @gpiochip_generic_free
L_.str.1:                               ## @.str.1
	.asciz	"gpio"

	.comm	_zx_direction_input,4,2         ## @zx_direction_input
	.comm	_zx_direction_output,4,2        ## @zx_direction_output
	.comm	_zx_get_value,4,2               ## @zx_get_value
	.comm	_zx_set_value,4,2               ## @zx_set_value
	.comm	_ZX_GPIO_NR,4,2                 ## @ZX_GPIO_NR
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_ZX_GPIO_IM,8,3                 ## @ZX_GPIO_IM
	.comm	_ZX_GPIO_IE,8,3                 ## @ZX_GPIO_IE
	.comm	_zx_irqchip,4,2                 ## @zx_irqchip
	.comm	_zx_irq_handler,4,2             ## @zx_irq_handler
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_handle_simple_irq,4,2          ## @handle_simple_irq
L_.str.2:                               ## @.str.2
	.asciz	"ZX GPIO chip registered\n"

	.no_dead_strip	_zx_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zx_gpio_probe
_zx_gpio_probe:                         ; @zx_gpio_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #112
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #96]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x20, #96]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	add	x0, x20, #104
	bl	_raw_spin_lock_init
	ldr	w0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_of_property_read_bool
	cbz	x0, LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _gpiochip_generic_request@GOTPAGE
Lloh5:
	ldr	x8, [x8, _gpiochip_generic_request@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _gpiochip_generic_free@GOTPAGE
Lloh8:
	ldr	x9, [x9, _gpiochip_generic_free@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #84]
LBB0_5:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_alias_get_id
Lloh12:
	adrp	x8, _zx_direction_input@GOTPAGE
Lloh13:
	ldr	x8, [x8, _zx_direction_input@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _zx_direction_output@GOTPAGE
Lloh16:
	ldr	x9, [x9, _zx_direction_output@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #76]
Lloh18:
	adrp	x8, _zx_get_value@GOTPAGE
Lloh19:
	ldr	x8, [x8, _zx_get_value@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _zx_set_value@GOTPAGE
Lloh22:
	ldr	x9, [x9, _zx_set_value@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _ZX_GPIO_NR@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ZX_GPIO_NR@GOTPAGEOFF]
	stp	w9, w8, [x20, #68]
	ldr	w8, [x10]
	mul	w8, w8, w0
	str	w8, [x20]
	ldr	w8, [x10]
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #64]
	str	x19, [x20, #56]
Lloh26:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x20, #48]
	ldr	x8, [x20, #96]
Lloh29:
	adrp	x9, _ZX_GPIO_IM@GOTPAGE
Lloh30:
	ldr	x9, [x9, _ZX_GPIO_IM@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #65535
	bl	_writew_relaxed
	ldr	x8, [x20, #96]
Lloh32:
	adrp	x9, _ZX_GPIO_IE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _ZX_GPIO_IE@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writew_relaxed
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_10
; %bb.6:
Lloh35:
	adrp	x8, _zx_irqchip@GOTPAGE
Lloh36:
	ldr	x8, [x8, _zx_irqchip@GOTPAGEOFF]
Lloh37:
	adrp	x9, _zx_irq_handler@GOTPAGE
Lloh38:
	ldr	x9, [x9, _zx_irq_handler@GOTPAGEOFF]
	str	x8, [x20, #40]
Lloh39:
	ldr	w8, [x9]
	str	w8, [x20, #32]
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	w3, [x22]
	mov	x0, x19
	mov	w1, #1
	mov	w2, #4
	bl	_devm_kcalloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_9
; %bb.7:
	str	w21, [x0]
Lloh40:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
Lloh43:
	adrp	x9, _handle_simple_irq@GOTPAGE
Lloh44:
	ldr	x9, [x9, _handle_simple_irq@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	mov	x0, x20
	mov	x1, x20
	bl	_gpiochip_add_data
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh46:
	adrp	x1, l_.str.2@PAGE
Lloh47:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_10
LBB0_9:
Lloh48:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.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	"gpio-ranges"

	.comm	_gpiochip_generic_request,4,2   ; @gpiochip_generic_request
	.comm	_gpiochip_generic_free,4,2      ; @gpiochip_generic_free
l_.str.1:                               ; @.str.1
	.asciz	"gpio"

	.comm	_zx_direction_input,4,2         ; @zx_direction_input
	.comm	_zx_direction_output,4,2        ; @zx_direction_output
	.comm	_zx_get_value,4,2               ; @zx_get_value
	.comm	_zx_set_value,4,2               ; @zx_set_value
	.comm	_ZX_GPIO_NR,4,2                 ; @ZX_GPIO_NR
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_ZX_GPIO_IM,8,3                 ; @ZX_GPIO_IM
	.comm	_ZX_GPIO_IE,8,3                 ; @ZX_GPIO_IE
	.comm	_zx_irqchip,4,2                 ; @zx_irqchip
	.comm	_zx_irq_handler,4,2             ; @zx_irq_handler
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_handle_simple_irq,4,2          ; @handle_simple_irq
l_.str.2:                               ; @.str.2
	.asciz	"ZX GPIO chip registered\n"

	.no_dead_strip	_zx_gpio_probe
.subsections_via_symbols
