	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_trig_gpio_store
_gpio_trig_gpio_store:                  ## @gpio_trig_gpio_store
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rdi, %r14
	callq	_led_trigger_get_led
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_led_trigger_get_drvdata
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_sscanf
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	-44(%rbp), %edi
	cmpl	%edi, (%r15)
	je	LBB0_13
## %bb.3:
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movl	-44(%rbp), %edi
	callq	_gpio_to_irq
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rdx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_gpio_trig_irq@GOTPCREL(%rip), %rdx
	leaq	L_.str.2(%rip), %r8
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r13, %r9
	callq	_request_threaded_irq
	movq	%r13, %rbx
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subq	(%rax), %r12
	jmp	LBB0_13
LBB0_4:
	movl	(%r15), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_free_irq
LBB0_6:
	movl	-44(%rbp), %eax
	movl	%eax, (%r15)
	jmp	LBB0_13
LBB0_9:
	movl	(%r15), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%r15), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_11:
	movl	-44(%rbp), %eax
	movl	%eax, (%r15)
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_gpio_trig_irq
LBB0_12:
	testl	%r13d, %r13d
	movslq	%r13d, %rax
	cmovneq	%rax, %r12
LBB0_13:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't read gpio number\n"

	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.2:                               ## @.str.2
	.asciz	"ledtrig-gpio"

L_.str.3:                               ## @.str.3
	.asciz	"request_irq failed with error %d\n"

	.no_dead_strip	_gpio_trig_gpio_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_trig_gpio_store
_gpio_trig_gpio_store:                  ; @gpio_trig_gpio_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x23, x2
	mov	x22, x0
	bl	_led_trigger_get_led
	mov	x20, x0
	mov	x0, x22
	bl	_led_trigger_get_drvdata
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x23
	bl	_sscanf
	cmp	w0, #0
	b.le	LBB0_5
; %bb.1:
	ldr	w8, [x21]
	ldr	w0, [sp, #12]
	cmp	w8, w0
	b.eq	LBB0_13
; %bb.2:
	bl	_gpio_is_valid
	cbz	x0, LBB0_6
; %bb.3:
	ldr	w0, [sp, #12]
	bl	_gpio_to_irq
Lloh2:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w8, w9
Lloh14:
	adrp	x2, _gpio_trig_irq@GOTPAGE
Lloh15:
	ldr	x2, [x2, _gpio_trig_irq@GOTPAGEOFF]
Lloh16:
	adrp	x4, l_.str.2@PAGE
Lloh17:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x1, #0
	mov	x5, x20
	bl	_request_threaded_irq
	mov	x23, x0
	cbz	w0, LBB0_9
; %bb.4:
	mov	x8, x23
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_12
LBB0_5:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_13
LBB0_6:
	ldr	w0, [x21]
	bl	_gpio_is_valid
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x21]
	bl	_gpio_to_irq
	mov	x1, x20
	bl	_free_irq
LBB0_8:
	ldr	w8, [sp, #12]
	str	w8, [x21]
	b	LBB0_13
LBB0_9:
	ldr	w0, [x21]
	bl	_gpio_is_valid
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x21]
	bl	_gpio_to_irq
	mov	x1, x20
	bl	_free_irq
LBB0_11:
	ldr	w8, [sp, #12]
	str	w8, [x21]
	mov	w0, #0
	mov	x1, x20
	bl	_gpio_trig_irq
LBB0_12:
	sxtw	x8, w23
	cmp	w23, #0
	csel	x19, x19, x8, eq
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't read gpio number\n"

	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.2:                               ; @.str.2
	.asciz	"ledtrig-gpio"

l_.str.3:                               ; @.str.3
	.asciz	"request_irq failed with error %d\n"

	.no_dead_strip	_gpio_trig_gpio_store
.subsections_via_symbols
