	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_led_set
_gpio_led_set:                          ## @gpio_led_set
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_cdev_to_gpio_led_data
	movq	_LED_OFF@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	%ebx, (%rcx)
	movq	%rax, %rbx
	setne	%sil
	cmpq	$0, 16(%rax)
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	*24(%rbx)
	movq	$0, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	cmpq	$0, 8(%rbx)
	movl	(%rbx), %edi
	je	LBB0_2
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gpiod_set_value_cansleep       ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gpiod_set_value                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.no_dead_strip	_gpio_led_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_led_set
_gpio_led_set:                          ; @gpio_led_set
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_cdev_to_gpio_led_data
	mov	x19, x0
Lloh0:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	cset	w1, ne
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w0, [x19]
	mov	x2, #0
	mov	x3, #0
	blr	x8
	str	xzr, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
	cbz	x8, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gpiod_set_value_cansleep
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gpiod_set_value
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.no_dead_strip	_gpio_led_set
.subsections_via_symbols
