	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h1940_greenled_set
_h1940_greenled_set:                    ## @h1940_greenled_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
	cmpl	$130, %esi
	je	LBB0_3
## %bb.1:
	movq	_H1940_LATCH_LED_FLASH@GOTPCREL(%rip), %rax
	cmpl	$129, %esi
	je	LBB0_2
## %bb.4:
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_h1940_latch_control
	movq	_H1940_LATCH_LED_GREEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	movq	_H1940_LATCH_LED_GREEN@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %r14d
	movl	$1, %ebx
	xorl	%edi, %edi
LBB0_5:
	movl	%r14d, %esi
	callq	_h1940_latch_control
	movq	_S3C2410_GPA7@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s3c2410_gpio_setpin            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_H1940_LATCH_LED_FLASH,4,2      ## @H1940_LATCH_LED_FLASH
	.comm	_S3C2410_GPA7,4,2               ## @S3C2410_GPA7
	.comm	_H1940_LATCH_LED_GREEN,4,2      ## @H1940_LATCH_LED_GREEN
	.no_dead_strip	_h1940_greenled_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h1940_greenled_set
_h1940_greenled_set:                    ; @h1940_greenled_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
	cmp	w1, #130
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
	mov	w0, #0
Lloh0:
	adrp	x8, _H1940_LATCH_LED_FLASH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _H1940_LATCH_LED_FLASH@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	w0, #0
Lloh2:
	adrp	x8, _H1940_LATCH_LED_GREEN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H1940_LATCH_LED_GREEN@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	w19, #1
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x8, _H1940_LATCH_LED_FLASH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _H1940_LATCH_LED_FLASH@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_h1940_latch_control
	mov	w1, #0
	mov	w19, #0
Lloh7:
	adrp	x8, _H1940_LATCH_LED_GREEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _H1940_LATCH_LED_GREEN@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_6:
	bl	_h1940_latch_control
Lloh10:
	adrp	x8, _S3C2410_GPA7@GOTPAGE
Lloh11:
	ldr	x8, [x8, _S3C2410_GPA7@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s3c2410_gpio_setpin
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_H1940_LATCH_LED_FLASH,4,2      ; @H1940_LATCH_LED_FLASH
	.comm	_S3C2410_GPA7,4,2               ; @S3C2410_GPA7
	.comm	_H1940_LATCH_LED_GREEN,4,2      ; @H1940_LATCH_LED_GREEN
	.no_dead_strip	_h1940_greenled_set
.subsections_via_symbols
