	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpio_sysfs_set_active_low
_gpio_sysfs_set_active_low:             ## @gpio_sysfs_set_active_low
	.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, %ebx
	movq	%rdi, %r15
	callq	_dev_get_drvdata
	movq	8(%rax), %r12
	movl	(%rax), %r14d
	movq	_FLAG_ACTIVE_LOW@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testl	%eax, %eax
	sete	%al
	testl	%ebx, %ebx
	setne	%cl
	xorb	%al, %cl
	jne	LBB0_6
## %bb.1:
	movl	(%r13), %edi
	movq	%r12, %rsi
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	callq	_set_bit
	jmp	LBB0_4
LBB0_3:
	callq	_clear_bit
LBB0_4:
	movq	_GPIO_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_7
## %bb.5:
	movq	_GPIO_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_7
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	callq	_gpio_sysfs_free_irq
	movq	%r15, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpio_sysfs_request_irq         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_ACTIVE_LOW,4,2            ## @FLAG_ACTIVE_LOW
	.comm	_GPIO_IRQF_TRIGGER_FALLING,4,2  ## @GPIO_IRQF_TRIGGER_FALLING
	.comm	_GPIO_IRQF_TRIGGER_RISING,4,2   ## @GPIO_IRQF_TRIGGER_RISING
	.no_dead_strip	_gpio_sysfs_set_active_low
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpio_sysfs_set_active_low
_gpio_sysfs_set_active_low:             ; @gpio_sysfs_set_active_low
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	ldr	x21, [x0, #8]
	ldr	w20, [x0]
Lloh0:
	adrp	x23, _FLAG_ACTIVE_LOW@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FLAG_ACTIVE_LOW@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x21
	bl	_test_bit
	cmp	w0, #0
	cset	w8, eq
	cmp	w22, #0
	cset	w9, ne
	eor	w8, w9, w8
	tbnz	w8, #0, LBB0_6
; %bb.1:
	ldr	w0, [x23]
	mov	x1, x21
	cbz	w22, LBB0_3
; %bb.2:
	bl	_set_bit
	b	LBB0_4
LBB0_3:
	bl	_clear_bit
LBB0_4:
Lloh2:
	adrp	x8, _GPIO_IRQF_TRIGGER_FALLING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GPIO_IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _GPIO_IRQF_TRIGGER_RISING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GPIO_IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w20, w9, #4, ne
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_gpio_sysfs_free_irq
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_gpio_sysfs_request_irq
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_ACTIVE_LOW,4,2            ; @FLAG_ACTIVE_LOW
	.comm	_GPIO_IRQF_TRIGGER_FALLING,4,2  ; @GPIO_IRQF_TRIGGER_FALLING
	.comm	_GPIO_IRQF_TRIGGER_RISING,4,2   ; @GPIO_IRQF_TRIGGER_RISING
	.no_dead_strip	_gpio_sysfs_set_active_low
.subsections_via_symbols
