	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_sysfs_request_irq
_gpio_sysfs_request_irq:                ## @gpio_sysfs_request_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	%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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	16(%rax), %r15
	movq	%r15, %rdi
	callq	_gpiod_to_irq
	movq	%rax, (%r13)
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sysfs_get_dirent
	movl	%eax, 12(%r13)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_GPIO_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	testb	%r14b, (%rax)
	je	LBB0_10
## %bb.6:
	movq	_FLAG_ACTIVE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_21
LBB0_7:
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
LBB0_9:
	orq	(%rax), %r12
LBB0_10:
	movq	_GPIO_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	testb	%r14b, (%rax)
	je	LBB0_15
## %bb.11:
	movq	_FLAG_ACTIVE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r15), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
LBB0_14:
	orq	(%rax), %r12
LBB0_15:
	movq	(%r15), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_gpio_chip_hwgpio
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_gpiochip_lock_as_irq
	testl	%eax, %eax
	js	LBB0_16
## %bb.17:
	movq	(%r13), %rdi
	movq	_gpio_sysfs_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdx
	movq	%r13, %r8
	callq	_request_any_context_irq
	testl	%eax, %eax
	js	LBB0_19
## %bb.18:
	movb	%r14b, 8(%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_21
LBB0_16:
	movl	%eax, %ebx
	jmp	LBB0_20
LBB0_19:
	movl	%eax, %ebx
	movq	(%r15), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_gpio_chip_hwgpio
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_gpiochip_unlock_as_irq
LBB0_20:
	movl	12(%r13), %edi
	callq	_sysfs_put
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"value"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IRQF_SHARED,8,3                ## @IRQF_SHARED
	.comm	_GPIO_IRQF_TRIGGER_FALLING,1,0  ## @GPIO_IRQF_TRIGGER_FALLING
	.comm	_FLAG_ACTIVE_LOW,4,2            ## @FLAG_ACTIVE_LOW
	.comm	_IRQF_TRIGGER_RISING,8,3        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ## @IRQF_TRIGGER_FALLING
	.comm	_GPIO_IRQF_TRIGGER_RISING,1,0   ## @GPIO_IRQF_TRIGGER_RISING
	.comm	_gpio_sysfs_irq,4,2             ## @gpio_sysfs_irq
L_.str.1:                               ## @.str.1
	.asciz	"gpiolib"

	.no_dead_strip	_gpio_sysfs_request_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_sysfs_request_irq
_gpio_sysfs_request_irq:                ; @gpio_sysfs_request_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x22, x0
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x21, [x0, #16]
	mov	x0, x21
	bl	_gpiod_to_irq
	str	x0, [x19]
	tbnz	x0, #63, LBB0_9
; %bb.1:
	ldr	w0, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sysfs_get_dirent
	str	w0, [x19, #12]
	cbz	w0, LBB0_10
; %bb.2:
Lloh2:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh4:
	ldr	x22, [x8]
Lloh5:
	adrp	x8, _GPIO_IRQF_TRIGGER_FALLING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GPIO_IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh7:
	adrp	x25, _FLAG_ACTIVE_LOW@GOTPAGE
Lloh8:
	ldr	x25, [x25, _FLAG_ACTIVE_LOW@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh9:
	adrp	x23, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh10:
	ldr	x23, [x23, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh11:
	adrp	x24, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh12:
	ldr	x24, [x24, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x25]
	add	x1, x21, #8
	bl	_test_bit
	cmp	x0, #0
	csel	x8, x23, x24, eq
	ldr	x8, [x8]
	orr	x22, x8, x22
LBB0_4:
Lloh13:
	adrp	x8, _GPIO_IRQF_TRIGGER_RISING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GPIO_IRQF_TRIGGER_RISING@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x25]
	add	x1, x21, #8
	bl	_test_bit
	cmp	x0, #0
	csel	x8, x24, x23, eq
	ldr	x8, [x8]
	orr	x22, x8, x22
LBB0_6:
	ldr	x8, [x21]
	ldr	w23, [x8]
	mov	x0, x21
	bl	_gpio_chip_hwgpio
	mov	x1, x0
	mov	x0, x23
	bl	_gpiochip_lock_as_irq
	tbnz	w0, #31, LBB0_12
; %bb.7:
	ldr	x0, [x19]
Lloh15:
	adrp	x8, _gpio_sysfs_irq@GOTPAGE
Lloh16:
	ldr	x8, [x8, _gpio_sysfs_irq@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x2, x22
	mov	x4, x19
	bl	_request_any_context_irq
	tbnz	w0, #31, LBB0_13
; %bb.8:
	mov	w23, #0
	strb	w20, [x19, #8]
	b	LBB0_15
LBB0_9:
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh22:
	adrp	x8, _ENODEV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_12:
	mov	x23, x0
	b	LBB0_14
LBB0_13:
	mov	x23, x0
	ldr	x8, [x21]
	ldr	w20, [x8]
	mov	x0, x21
	bl	_gpio_chip_hwgpio
	mov	x1, x0
	mov	x0, x20
	bl	_gpiochip_unlock_as_irq
LBB0_14:
	ldr	w0, [x19, #12]
	bl	_sysfs_put
LBB0_15:
	mov	x0, x23
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"value"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IRQF_SHARED,8,3                ; @IRQF_SHARED
	.comm	_GPIO_IRQF_TRIGGER_FALLING,1,0  ; @GPIO_IRQF_TRIGGER_FALLING
	.comm	_FLAG_ACTIVE_LOW,4,2            ; @FLAG_ACTIVE_LOW
	.comm	_IRQF_TRIGGER_RISING,8,3        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ; @IRQF_TRIGGER_FALLING
	.comm	_GPIO_IRQF_TRIGGER_RISING,1,0   ; @GPIO_IRQF_TRIGGER_RISING
	.comm	_gpio_sysfs_irq,4,2             ; @gpio_sysfs_irq
l_.str.1:                               ; @.str.1
	.asciz	"gpiolib"

	.no_dead_strip	_gpio_sysfs_request_irq
.subsections_via_symbols
