	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fwnode_get_named_gpiod         ## -- Begin function fwnode_get_named_gpiod
	.p2align	4, 0x90
_fwnode_get_named_gpiod:                ## @fwnode_get_named_gpiod
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	%ecx, -48(%rbp)
	movq	_GPIO_LOOKUP_FLAGS_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.1:
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_is_of_node
	testq	%rax, %rax
	je	LBB0_2
## %bb.12:
	movq	%rbx, %rdi
	callq	_to_of_node
	movl	%eax, %edi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpiod_get_from_of_node         ## TAILCALL
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_is_acpi_node
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_acpi_node_get_gpiod
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	leaq	-48(%rbp), %rdi
	leaq	-56(%rbp), %r14
	movq	%r14, %rsi
	callq	_acpi_gpio_update_gpiod_flags
	leaq	-72(%rbp), %rdi
	movq	%r14, %rsi
	callq	_acpi_gpio_update_gpiod_lookup_flags
LBB0_5:
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_gpiod_request
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %edi
LBB0_7:
	callq	_ERR_PTR
	movq	%rax, %r13
	jmp	LBB0_8
LBB0_9:
	movq	-72(%rbp), %rdx
	movl	-48(%rbp), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_gpiod_configure_flags
	testl	%eax, %eax
	js	LBB0_10
LBB0_8:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_gpiod_put
	movl	%r14d, %edi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_LOOKUP_FLAGS_DEFAULT,8,3  ## @GPIO_LOOKUP_FLAGS_DEFAULT
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fwnode_get_named_gpiod         ; -- Begin function fwnode_get_named_gpiod
	.p2align	2
_fwnode_get_named_gpiod:                ; @fwnode_get_named_gpiod
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x4
	mov	x24, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
	str	w3, [sp, #28]
Lloh0:
	adrp	x8, _GPIO_LOOKUP_FLAGS_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_LOOKUP_FLAGS_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #16]
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	cbz	x23, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x23
	bl	_is_of_node
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x23
	bl	_to_of_node
	mov	x1, x19
	mov	x2, x22
	mov	x3, x24
	mov	x4, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_gpiod_get_from_of_node
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_ERR_PTR
LBB0_4:
	mov	x0, x23
	bl	_is_acpi_node
	cbz	x0, LBB0_7
; %bb.5:
	add	x3, sp, #8
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	bl	_acpi_node_get_gpiod
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_10
; %bb.6:
	add	x0, sp, #28
	add	x1, sp, #8
	bl	_acpi_gpio_update_gpiod_flags
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_acpi_gpio_update_gpiod_lookup_flags
LBB0_7:
	mov	x0, x21
	mov	x1, x20
	bl	_gpiod_request
	cbz	w0, LBB0_9
LBB0_8:
	bl	_ERR_PTR
	mov	x21, x0
	b	LBB0_10
LBB0_9:
	ldr	x2, [sp, #16]
	ldr	w3, [sp, #28]
	mov	x0, x21
	mov	x1, x19
	bl	_gpiod_configure_flags
	tbnz	w0, #31, LBB0_11
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	mov	x19, x0
	mov	x0, x21
	bl	_gpiod_put
	mov	x0, x19
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_LOOKUP_FLAGS_DEFAULT,8,3  ; @GPIO_LOOKUP_FLAGS_DEFAULT
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
