	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgpio_probe
_xgpio_probe:                           ## @xgpio_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	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, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movq	8(%rbx), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movl	$-1, (%rax)
LBB0_4:
	movq	16(%rbx), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	16(%rbx), %rax
	movl	$32, (%rax)
LBB0_6:
	movq	72(%rbx), %rdi
	callq	_spin_lock_init
	leaq	L_.str.3(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	$0, -36(%rbp)
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_18
LBB0_8:
	cmpl	$0, -36(%rbp)
	je	LBB0_14
## %bb.9:
	movq	(%rbx), %rdx
	addq	$4, %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movq	8(%rbx), %rdx
	addq	$4, %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	8(%rbx), %rax
	movl	$-1, 4(%rax)
LBB0_11:
	movq	16(%rbx), %rdx
	addq	$4, %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	16(%rbx), %rax
	movl	$32, 4(%rax)
LBB0_13:
	movq	72(%rbx), %rdi
	addq	$4, %rdi
	callq	_spin_lock_init
LBB0_14:
	movl	$-1, 24(%rbx)
	movq	16(%rbx), %rax
	movl	4(%rax), %ecx
	addl	(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movq	%r14, 56(%rbx)
	movq	_xgpio_dir_in@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_xgpio_dir_out@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_xgpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_xgpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_xgpio_set_multiple@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 32(%rbx)
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 64(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	64(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_18
LBB0_16:
	movq	%rbx, %r12
	addq	$24, %r12
	movq	%rbx, %rdi
	callq	_xgpio_save_regs
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%ebx, %r15d
LBB0_18:
	movl	%r15d, %eax
	addq	$16, %rsp
	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	"xlnx,dout-default"

L_.str.1:                               ## @.str.1
	.asciz	"xlnx,tri-default"

L_.str.2:                               ## @.str.2
	.asciz	"xlnx,gpio-width"

L_.str.3:                               ## @.str.3
	.asciz	"xlnx,is-dual"

L_.str.4:                               ## @.str.4
	.asciz	"xlnx,dout-default-2"

L_.str.5:                               ## @.str.5
	.asciz	"xlnx,tri-default-2"

L_.str.6:                               ## @.str.6
	.asciz	"xlnx,gpio2-width"

	.comm	_xgpio_dir_in,4,2               ## @xgpio_dir_in
	.comm	_xgpio_dir_out,4,2              ## @xgpio_dir_out
	.comm	_xgpio_get,4,2                  ## @xgpio_get
	.comm	_xgpio_set,4,2                  ## @xgpio_set
	.comm	_xgpio_set_multiple,4,2         ## @xgpio_set_multiple
L_.str.7:                               ## @.str.7
	.asciz	"failed to ioremap memory resource\n"

L_.str.8:                               ## @.str.8
	.asciz	"failed to add GPIO chip\n"

	.no_dead_strip	_xgpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgpio_probe
_xgpio_probe:                           ; @xgpio_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [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_7
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x2, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	ldr	x2, [x20, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x20, #8]
	mov	w9, #-1
	str	w9, [x8]
LBB0_3:
	ldr	x2, [x20, #16]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x20, #16]
	mov	w9, #32
	str	w9, [x8]
LBB0_5:
	ldr	x0, [x20, #72]
	bl	_spin_lock_init
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	x0, LBB0_8
; %bb.6:
	str	wzr, [sp, #12]
	b	LBB0_14
LBB0_7:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_18
LBB0_8:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_14
; %bb.9:
	ldr	x8, [x20]
	add	x2, x8, #4
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	ldr	x8, [x20, #8]
	add	x2, x8, #4
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [x20, #8]
	mov	w9, #-1
	str	w9, [x8, #4]
LBB0_11:
	ldr	x8, [x20, #16]
	add	x2, x8, #4
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x8, [x20, #16]
	mov	w9, #32
	str	w9, [x8, #4]
LBB0_13:
	ldr	x8, [x20, #72]
	add	x0, x8, #4
	bl	_spin_lock_init
LBB0_14:
	mov	w8, #-1
	mov	x21, x20
	str	w8, [x21, #24]!
	ldur	x8, [x21, #-8]
	ldp	w9, w8, [x8]
	add	w8, w8, w9
	str	w8, [x21, #4]
	str	x19, [x21, #32]
Lloh20:
	adrp	x8, _xgpio_dir_in@GOTPAGE
Lloh21:
	ldr	x8, [x8, _xgpio_dir_in@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [x21, #28]
Lloh23:
	adrp	x8, _xgpio_dir_out@GOTPAGE
Lloh24:
	ldr	x8, [x8, _xgpio_dir_out@GOTPAGEOFF]
Lloh25:
	adrp	x9, _xgpio_get@GOTPAGE
Lloh26:
	ldr	x9, [x9, _xgpio_get@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #20]
Lloh29:
	adrp	x8, _xgpio_set@GOTPAGE
Lloh30:
	ldr	x8, [x8, _xgpio_set@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _xgpio_set_multiple@GOTPAGE
Lloh33:
	ldr	x9, [x9, _xgpio_set_multiple@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #12]
	mov	x0, x19
	bl	_dev_name
	str	w0, [x21, #8]
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x21, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #64]
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_18
LBB0_16:
	mov	x0, x20
	bl	_xgpio_save_regs
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	mov	x20, x0
	cbz	w0, LBB0_18
; %bb.17:
Lloh37:
	adrp	x1, l_.str.8@PAGE
Lloh38:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_18:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.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	"xlnx,dout-default"

l_.str.1:                               ; @.str.1
	.asciz	"xlnx,tri-default"

l_.str.2:                               ; @.str.2
	.asciz	"xlnx,gpio-width"

l_.str.3:                               ; @.str.3
	.asciz	"xlnx,is-dual"

l_.str.4:                               ; @.str.4
	.asciz	"xlnx,dout-default-2"

l_.str.5:                               ; @.str.5
	.asciz	"xlnx,tri-default-2"

l_.str.6:                               ; @.str.6
	.asciz	"xlnx,gpio2-width"

	.comm	_xgpio_dir_in,4,2               ; @xgpio_dir_in
	.comm	_xgpio_dir_out,4,2              ; @xgpio_dir_out
	.comm	_xgpio_get,4,2                  ; @xgpio_get
	.comm	_xgpio_set,4,2                  ; @xgpio_set
	.comm	_xgpio_set_multiple,4,2         ; @xgpio_set_multiple
l_.str.7:                               ; @.str.7
	.asciz	"failed to ioremap memory resource\n"

l_.str.8:                               ; @.str.8
	.asciz	"failed to add GPIO chip\n"

	.no_dead_strip	_xgpio_probe
.subsections_via_symbols
