	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_trig_irq
_gpio_trig_irq:                         ## @gpio_trig_irq
	.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
	movq	%rsi, %rdi
	callq	_led_get_trigger_data
	movq	%rax, %rbx
	movl	24(%rax), %edi
	callq	_gpio_get_value_cansleep
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	cmpq	$0, 16(%rbx)
	cmovel	%eax, %ecx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rsi
	movl	(%rbx), %edi
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.2:
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movl	(%rbx), %edi
	movq	_LED_OFF@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rsi
LBB0_5:
	callq	_led_set_brightness_nosleep
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LED_FULL,8,3                   ## @LED_FULL
	.comm	_LED_OFF,8,3                    ## @LED_OFF
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_gpio_trig_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_trig_irq
_gpio_trig_irq:                         ; @gpio_trig_irq
	.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	x0, x1
	bl	_led_get_trigger_data
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_gpio_get_value_cansleep
	ldr	x8, [x19, #16]
	cmp	w0, #0
	cset	w9, eq
	cmp	x8, #0
	csel	w8, w0, w9, eq
	cbz	w8, LBB0_3
; %bb.1:
	ldr	x1, [x19, #8]
	ldr	w0, [x19]
	cbnz	x1, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _LED_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LED_FULL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _LED_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LED_OFF@GOTPAGEOFF]
LBB0_4:
	ldr	x1, [x8]
LBB0_5:
	bl	_led_set_brightness_nosleep
Lloh4:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_LED_FULL,8,3                   ; @LED_FULL
	.comm	_LED_OFF,8,3                    ; @LED_OFF
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_gpio_trig_irq
.subsections_via_symbols
