	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	callq	_to_gpio
	movq	(%rax), %rbx
	movl	4(%rbx), %edi
	xorl	%eax, %eax
	testl	%r14d, %r14d
	setne	%al
	movq	_S3C24XX_LEDF_ACTLOW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%rbx), %esi
	xorl	%eax, %esi
	callq	_s3c2410_gpio_setpin
	movq	_S3C24XX_LEDF_TRISTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.1:
	movl	4(%rbx), %edi
	testl	%r14d, %r14d
	jne	LBB0_2
## %bb.3:
	movq	_S3C2410_GPIO_INPUT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_S3C2410_GPIO_OUTPUT@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s3c2410_gpio_cfgpin            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_S3C24XX_LEDF_ACTLOW,4,2        ## @S3C24XX_LEDF_ACTLOW
	.comm	_S3C24XX_LEDF_TRISTATE,4,2      ## @S3C24XX_LEDF_TRISTATE
	.comm	_S3C2410_GPIO_OUTPUT,4,2        ## @S3C2410_GPIO_OUTPUT
	.comm	_S3C2410_GPIO_INPUT,4,2         ## @S3C2410_GPIO_INPUT
	.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	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	x19, x1
	bl	_to_gpio
	ldr	x20, [x0]
	cmp	w19, #0
	cset	w8, ne
	ldp	w9, w0, [x20]
Lloh0:
	adrp	x10, _S3C24XX_LEDF_ACTLOW@GOTPAGE
Lloh1:
	ldr	x10, [x10, _S3C24XX_LEDF_ACTLOW@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w9, w10, w9
	eor	w1, w9, w8
	bl	_s3c2410_gpio_setpin
	ldr	w8, [x20]
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_2
; %bb.1:
Lloh6:
	adrp	x8, _S3C2410_GPIO_OUTPUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S3C2410_GPIO_OUTPUT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _S3C2410_GPIO_INPUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _S3C2410_GPIO_INPUT@GOTPAGEOFF]
	ldr	w0, [x20, #4]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s3c2410_gpio_cfgpin
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_S3C24XX_LEDF_ACTLOW,4,2        ; @S3C24XX_LEDF_ACTLOW
	.comm	_S3C24XX_LEDF_TRISTATE,4,2      ; @S3C24XX_LEDF_TRISTATE
	.comm	_S3C2410_GPIO_OUTPUT,4,2        ; @S3C2410_GPIO_OUTPUT
	.comm	_S3C2410_GPIO_INPUT,4,2         ; @S3C2410_GPIO_INPUT
	.no_dead_strip	_s3c24xx_led_set
.subsections_via_symbols
