	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxbf_gpio_probe
_mlxbf_gpio_probe:                      ## @mlxbf_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	$16, %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, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	8(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_3:
	movq	8(%rbx), %rax
	movq	_MLXBF_GPIO_PIN_STATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	_MLXBF_GPIO_PIN_DIR_O@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r10
	addq	%rax, %r10
	movq	_MLXBF_GPIO_PIN_DIR_I@GOTPCREL(%rip), %rdx
	addq	(%rdx), %rax
	subq	$8, %rsp
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	pushq	%r10
	callq	_bgpio_init
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_5:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_MLXBF_GPIO_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_devm_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r15d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLXBF_GPIO_PIN_STATE,8,3       ## @MLXBF_GPIO_PIN_STATE
	.comm	_MLXBF_GPIO_PIN_DIR_O,8,3       ## @MLXBF_GPIO_PIN_DIR_O
	.comm	_MLXBF_GPIO_PIN_DIR_I,8,3       ## @MLXBF_GPIO_PIN_DIR_I
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_MLXBF_GPIO_NR,4,2              ## @MLXBF_GPIO_NR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed adding memory mapped gpiochip\n"

L_.str.1:                               ## @.str.1
	.asciz	"registered Mellanox BlueField GPIO"

	.no_dead_strip	_mlxbf_gpio_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxbf_gpio_probe
_mlxbf_gpio_probe:                      ; @mlxbf_gpio_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
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x20, #8]
	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
	b	_PTR_ERR
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldr	x8, [x20, #8]
Lloh5:
	adrp	x9, _MLXBF_GPIO_PIN_STATE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MLXBF_GPIO_PIN_STATE@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x3, x9, x8
Lloh8:
	adrp	x9, _MLXBF_GPIO_PIN_DIR_O@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MLXBF_GPIO_PIN_DIR_O@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x6, x9, x8
Lloh11:
	adrp	x9, _MLXBF_GPIO_PIN_DIR_I@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MLXBF_GPIO_PIN_DIR_I@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x7, x9, x8
	str	wzr, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #8
	mov	x4, #0
	mov	x5, #0
	bl	_bgpio_init
	cbz	w0, LBB0_8
; %bb.5:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
Lloh16:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _MLXBF_GPIO_NR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MLXBF_GPIO_NR@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x20
	bl	_devm_gpiochip_add_data
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.9:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLXBF_GPIO_PIN_STATE,8,3       ; @MLXBF_GPIO_PIN_STATE
	.comm	_MLXBF_GPIO_PIN_DIR_O,8,3       ; @MLXBF_GPIO_PIN_DIR_O
	.comm	_MLXBF_GPIO_PIN_DIR_I,8,3       ; @MLXBF_GPIO_PIN_DIR_I
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_MLXBF_GPIO_NR,4,2              ; @MLXBF_GPIO_NR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed adding memory mapped gpiochip\n"

l_.str.1:                               ; @.str.1
	.asciz	"registered Mellanox BlueField GPIO"

	.no_dead_strip	_mlxbf_gpio_probe
.subsections_via_symbols
