	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_mm_gpiochip_add_data        ## -- Begin function of_mm_gpiochip_add_data
	.p2align	4, 0x90
_of_mm_gpiochip_add_data:               ## @of_mm_gpiochip_add_data
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_kasprintf
	movl	%eax, 12(%r15)
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_of_iomap
	movl	%eax, (%r15)
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	leaq	8(%r15), %rbx
	movl	$-1, 8(%r15)
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	*%rax
LBB0_4:
	movq	%r14, 16(%r15)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_gpiochip_add_data
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_iounmap
LBB0_7:
	movl	12(%r15), %edi
	callq	_kfree
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_pr_err
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%pOF"

L_.str.1:                               ## @.str.1
	.asciz	"%pOF: GPIO chip registration failed with status %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_mm_gpiochip_add_data        ; -- Begin function of_mm_gpiochip_add_data
	.p2align	2
_of_mm_gpiochip_add_data:               ; @of_mm_gpiochip_add_data
	.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	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_kasprintf
	str	w0, [x20, #12]
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_of_iomap
	str	w0, [x20]
	cbz	w0, LBB0_6
; %bb.2:
	add	x21, x20, #8
	mov	w8, #-1
	str	w8, [x20, #8]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x20
	blr	x8
LBB0_4:
	str	x19, [x20, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_gpiochip_add_data
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w0, [x20]
	bl	_iounmap
LBB0_6:
	ldr	w0, [x20, #12]
	bl	_kfree
LBB0_7:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_pr_err
LBB0_8:
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%pOF"

l_.str.1:                               ; @.str.1
	.asciz	"%pOF: GPIO chip registration failed with status %d\n"

.subsections_via_symbols
