	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function men_z127_probe
_men_z127_probe:                        ## @men_z127_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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_dev_name
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mcb_request_mem
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	(%r14), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movq	(%r14), %rdi
	movl	(%rdi), %ebx
	callq	_resource_size
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ioremap
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mcb_set_drvdata
	movq	%r14, %r12
	addq	$16, %r12
	movq	8(%r14), %rax
	movq	_MEN_Z127_PSR@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rcx
	movq	_MEN_Z127_CTRL@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	leaq	(%rax,%rdx,4), %r8
	movq	_MEN_Z127_GPIODR@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	leaq	(%rax,%rdx,4), %rax
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	pushq	%rax
	callq	_bgpio_init
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	_men_z127_set_config@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
LBB0_8:
	movq	8(%r14), %rdi
	callq	_iounmap
	jmp	LBB0_9
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	(%r14), %rdi
	callq	_mcb_release_mem
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.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	"failed to request device memory"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_MEN_Z127_PSR,4,2               ## @MEN_Z127_PSR
	.comm	_MEN_Z127_CTRL,4,2              ## @MEN_Z127_CTRL
	.comm	_MEN_Z127_GPIODR,4,2            ## @MEN_Z127_GPIODR
	.comm	_men_z127_set_config,4,2        ## @men_z127_set_config
L_.str.1:                               ## @.str.1
	.asciz	"failed to register MEN 16Z127 GPIO controller"

L_.str.2:                               ## @.str.2
	.asciz	"MEN 16Z127 GPIO driver registered"

	.no_dead_strip	_men_z127_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function men_z127_probe
_men_z127_probe:                        ; @men_z127_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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_dev_name
	mov	x1, x0
	mov	x0, x20
	bl	_mcb_request_mem
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_4:
	ldr	x0, [x19]
	ldr	w21, [x0]
	bl	_resource_size
	mov	x1, x0
	mov	x0, x21
	bl	_ioremap
	str	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_mcb_set_drvdata
	add	x22, x19, #16
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _MEN_Z127_PSR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MEN_Z127_PSR@GOTPAGEOFF]
Lloh10:
	ldrsw	x9, [x9]
	add	x3, x8, x9, lsl #2
Lloh11:
	adrp	x9, _MEN_Z127_CTRL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MEN_Z127_CTRL@GOTPAGEOFF]
Lloh13:
	ldrsw	x9, [x9]
	add	x4, x8, x9, lsl #2
Lloh14:
	adrp	x9, _MEN_Z127_GPIODR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MEN_Z127_GPIODR@GOTPAGEOFF]
Lloh16:
	ldrsw	x9, [x9]
	add	x6, x8, x9, lsl #2
	str	wzr, [sp]
	mov	x0, x22
	mov	x1, x20
	mov	w2, #4
	mov	x5, #0
	mov	x7, #0
	bl	_bgpio_init
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.6:
Lloh17:
	adrp	x8, _men_z127_set_config@GOTPAGE
Lloh18:
	ldr	x8, [x8, _men_z127_set_config@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x22
	mov	x1, x19
	bl	_gpiochip_add_data
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.7:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_8:
	ldr	x0, [x19, #8]
	bl	_iounmap
	b	LBB0_10
LBB0_9:
Lloh22:
	adrp	x8, _ENXIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	ldr	x0, [x19]
	bl	_mcb_release_mem
LBB0_11:
	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_12:
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.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	"failed to request device memory"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_MEN_Z127_PSR,4,2               ; @MEN_Z127_PSR
	.comm	_MEN_Z127_CTRL,4,2              ; @MEN_Z127_CTRL
	.comm	_MEN_Z127_GPIODR,4,2            ; @MEN_Z127_GPIODR
	.comm	_men_z127_set_config,4,2        ; @men_z127_set_config
l_.str.1:                               ; @.str.1
	.asciz	"failed to register MEN 16Z127 GPIO controller"

l_.str.2:                               ; @.str.2
	.asciz	"MEN 16Z127 GPIO driver registered"

	.no_dead_strip	_men_z127_probe
.subsections_via_symbols
