	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s3c24xx_led_set
_s3c24xx_led_set:                       ## @s3c24xx_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_to_gpio
	movq	(%rax), %r15
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	movq	_S3C24XX_LEDF_ACTLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	(%r15), %ebx
	xorl	%eax, %ebx
	movl	4(%r15), %edi
	movl	%ebx, %esi
	callq	_gpio_set_value
	movq	_S3C24XX_LEDF_TRISTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.1:
	movl	4(%r15), %edi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.4:
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpio_direction_output          ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpio_direction_input           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C24XX_LEDF_ACTLOW,4,2        ## @S3C24XX_LEDF_ACTLOW
	.comm	_S3C24XX_LEDF_TRISTATE,4,2      ## @S3C24XX_LEDF_TRISTATE
	.no_dead_strip	_s3c24xx_led_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s3c24xx_led_set
_s3c24xx_led_set:                       ; @s3c24xx_led_set
	.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	x19, x1
	bl	_to_gpio
	ldr	x21, [x0]
	cmp	w19, #0
Lloh0:
	adrp	x8, _S3C24XX_LEDF_ACTLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S3C24XX_LEDF_ACTLOW@GOTPAGEOFF]
	cset	w9, ne
Lloh2:
	ldr	w8, [x8]
	ldp	w10, w0, [x21]
	and	w8, w8, w10
	eor	w20, w8, w9
	mov	x1, x20
	bl	_gpio_set_value
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _S3C24XX_LEDF_TRISTATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S3C24XX_LEDF_TRISTATE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w0, [x21, #4]
	cbz	w19, LBB0_4
; %bb.2:
	mov	x1, x20
	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
	b	_gpio_direction_output
LBB0_3:
	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
LBB0_4:
	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
	b	_gpio_direction_input
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C24XX_LEDF_ACTLOW,4,2        ; @S3C24XX_LEDF_ACTLOW
	.comm	_S3C24XX_LEDF_TRISTATE,4,2      ; @S3C24XX_LEDF_TRISTATE
	.no_dead_strip	_s3c24xx_led_set
.subsections_via_symbols
