	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_gpio_probe
_xgene_gpio_probe:                      ## @xgene_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	(%rax), %r15d
	movq	%rax, %rdi
	callq	_resource_size
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_devm_ioremap_nocache
	movl	%eax, 52(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	_XGENE_MAX_GPIOS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%rbx, %rdi
	addq	$48, %rdi
	callq	_spin_lock_init
	movq	%r14, 32(%rbx)
	movq	_xgene_gpio_get_direction@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_xgene_gpio_dir_in@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_xgene_gpio_dir_out@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_xgene_gpio_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_xgene_gpio_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_dev_name
	movl	%eax, 4(%rbx)
	movl	$-1, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %r15d
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XGENE_MAX_GPIOS,4,2            ## @XGENE_MAX_GPIOS
	.comm	_xgene_gpio_get_direction,4,2   ## @xgene_gpio_get_direction
	.comm	_xgene_gpio_dir_in,4,2          ## @xgene_gpio_dir_in
	.comm	_xgene_gpio_dir_out,4,2         ## @xgene_gpio_dir_out
	.comm	_xgene_gpio_get,4,2             ## @xgene_gpio_get
	.comm	_xgene_gpio_set,4,2             ## @xgene_gpio_set
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register gpiochip.\n"

L_.str.1:                               ## @.str.1
	.asciz	"X-Gene GPIO driver registered.\n"

L_.str.2:                               ## @.str.2
	.asciz	"X-Gene GPIO driver registration failed.\n"

	.no_dead_strip	_xgene_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_gpio_probe
_xgene_gpio_probe:                      ; @xgene_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	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %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
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w21, [x0]
	bl	_resource_size
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap_nocache
	str	w0, [x20, #52]
	cbz	w0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _XGENE_MAX_GPIOS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XGENE_MAX_GPIOS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	add	x0, x20, #48
	bl	_spin_lock_init
	str	x19, [x20, #32]
Lloh9:
	adrp	x8, _xgene_gpio_get_direction@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xgene_gpio_get_direction@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20, #24]
Lloh12:
	adrp	x8, _xgene_gpio_dir_in@GOTPAGE
Lloh13:
	ldr	x8, [x8, _xgene_gpio_dir_in@GOTPAGEOFF]
Lloh14:
	adrp	x9, _xgene_gpio_dir_out@GOTPAGE
Lloh15:
	ldr	x9, [x9, _xgene_gpio_dir_out@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh18:
	adrp	x8, _xgene_gpio_get@GOTPAGE
Lloh19:
	ldr	x8, [x8, _xgene_gpio_get@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _xgene_gpio_set@GOTPAGE
Lloh22:
	ldr	x9, [x9, _xgene_gpio_set@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	mov	x0, x19
	bl	_dev_name
	mov	w8, #-1
	stp	w8, w0, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.4:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_8
LBB0_5:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
	mov	x0, x20
	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
LBB0_10:
Lloh32:
	adrp	x1, l_.str.1@PAGE
Lloh33:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XGENE_MAX_GPIOS,4,2            ; @XGENE_MAX_GPIOS
	.comm	_xgene_gpio_get_direction,4,2   ; @xgene_gpio_get_direction
	.comm	_xgene_gpio_dir_in,4,2          ; @xgene_gpio_dir_in
	.comm	_xgene_gpio_dir_out,4,2         ; @xgene_gpio_dir_out
	.comm	_xgene_gpio_get,4,2             ; @xgene_gpio_get
	.comm	_xgene_gpio_set,4,2             ; @xgene_gpio_set
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register gpiochip.\n"

l_.str.1:                               ; @.str.1
	.asciz	"X-Gene GPIO driver registered.\n"

l_.str.2:                               ; @.str.2
	.asciz	"X-Gene GPIO driver registration failed.\n"

	.no_dead_strip	_xgene_gpio_probe
.subsections_via_symbols
