	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_led_get_gpiod
_gpio_led_get_gpiod:                    ## @gpio_led_get_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %edx
	movq	%rdi, %r15
	movq	_GPIOF_OUT_INIT_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%esi, %esi
	movq	%r12, %rcx
	callq	_devm_gpiod_get_index
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movq	_ENOENT@GOTPCREL(%rip), %r13
	addl	(%r13), %eax
	jne	LBB0_2
## %bb.4:
	movl	(%r14), %edi
	callq	_gpio_is_valid
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.7:
	movq	_GPIOF_ACTIVE_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_8:
	orq	%r12, %rdx
	movl	(%r14), %esi
	movl	4(%r14), %ecx
	movq	%r15, %rdi
	callq	_devm_gpio_request_one
	testl	%eax, %eax
	js	LBB0_9
## %bb.11:
	movl	(%r14), %edi
	callq	_gpio_to_desc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_10
LBB0_1:
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_gpiod_set_consumer_name
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%edi, %edi
	subl	(%r13), %edi
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %edi
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIOF_OUT_INIT_LOW,8,3         ## @GPIOF_OUT_INIT_LOW
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_GPIOF_ACTIVE_LOW,8,3           ## @GPIOF_ACTIVE_LOW
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_gpio_led_get_gpiod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_led_get_gpiod
_gpio_led_get_gpiod:                    ; @gpio_led_get_gpiod
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x2, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GPIOF_OUT_INIT_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIOF_OUT_INIT_LOW@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
	mov	x1, #0
	mov	x3, x21
	bl	_devm_gpiod_get_index
	mov	x22, x0
	bl	_IS_ERR
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x22
	bl	_PTR_ERR
Lloh3:
	adrp	x23, _ENOENT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ENOENT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.2:
	ldr	w0, [x19]
	bl	_gpio_is_valid
	cbz	w0, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _GPIOF_ACTIVE_LOW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GPIOF_ACTIVE_LOW@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, xzr, x9, eq
	orr	x2, x8, x21
	ldp	w1, w3, [x19]
	mov	x0, x20
	bl	_devm_gpio_request_one
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldr	w0, [x19]
	bl	_gpio_to_desc
	mov	x22, x0
	cbnz	x0, LBB0_7
; %bb.5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	b	LBB0_9
LBB0_6:
	ldr	w1, [x19, #4]
	mov	x0, x22
	bl	_gpiod_set_consumer_name
LBB0_7:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w8, [x23]
LBB0_9:
	neg	w0, w8
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIOF_OUT_INIT_LOW,8,3         ; @GPIOF_OUT_INIT_LOW
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_GPIOF_ACTIVE_LOW,8,3           ; @GPIOF_ACTIVE_LOW
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_gpio_led_get_gpiod
.subsections_via_symbols
