	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_free                      ## -- Begin function gpio_free
	.p2align	4, 0x90
_gpio_free:                             ## @gpio_free
	.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	%edi, %ebx
	xorl	%eax, %eax
	callq	_might_sleep
	movl	%ebx, %edi
	callq	_gpio_is_valid
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	movl	%ebx, %edi
	callq	_gpio_unexport
	movq	_gpio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	_gpio_desc@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%ebx, %r12d
	movq	%r12, %r15
	shlq	$4, %r15
	movq	8(%r13,%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.2:
	leaq	(%r15,%r13), %r14
	movq	_FLAG_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	addq	%r15, %r13
	addq	$8, %r13
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.4:
	movq	_gpio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movq	_extra_checks@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.6:
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	setne	%dil
	jmp	LBB0_7
LBB0_9:
	movq	_extra_checks@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_WARN_ON
	jmp	LBB0_10
LBB0_11:
	movq	_extra_checks@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN_ON                        ## TAILCALL
LBB0_5:
	xorl	%edi, %edi
LBB0_7:
	callq	_might_sleep_if
	subq	8(%rbx), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	*16(%rbx)
	movq	_gpio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
LBB0_8:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_desc_set_label
	movq	(%r13), %rax
	movl	(%rax), %edi
	callq	_module_put
	movq	_FLAG_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_10:
	movq	_gpio_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_extra_checks,8,3               ## @extra_checks
	.comm	_gpio_lock,4,2                  ## @gpio_lock
	.comm	_gpio_desc,8,3                  ## @gpio_desc
	.comm	_FLAG_REQUESTED,4,2             ## @FLAG_REQUESTED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpio_free                      ; -- Begin function gpio_free
	.p2align	2
_gpio_free:                             ; @gpio_free
	.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	x21, x0
	bl	_might_sleep
	mov	x0, x21
	bl	_gpio_is_valid
	cbz	w0, LBB0_7
; %bb.1:
	mov	x0, x21
	bl	_gpio_unexport
Lloh0:
	adrp	x0, _gpio_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _gpio_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x8, _gpio_desc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _gpio_desc@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	add	x19, x8, w21, uxtw #4
	mov	x22, x19
	ldr	x20, [x22, #8]!
	cbz	x20, LBB0_6
; %bb.2:
Lloh5:
	adrp	x23, _FLAG_REQUESTED@GOTPAGE
Lloh6:
	ldr	x23, [x23, _FLAG_REQUESTED@GOTPAGEOFF]
	ldr	w0, [x23]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_10
; %bb.4:
	mov	w21, w21
Lloh7:
	adrp	x0, _gpio_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _gpio_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
Lloh9:
	adrp	x8, _extra_checks@GOTPAGE
Lloh10:
	ldr	x8, [x8, _extra_checks@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _extra_checks@GOTPAGE
Lloh13:
	ldr	x8, [x8, _extra_checks@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
	bl	_WARN_ON
	b	LBB0_11
LBB0_7:
Lloh15:
	adrp	x8, _extra_checks@GOTPAGE
Lloh16:
	ldr	x8, [x8, _extra_checks@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	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	_WARN_ON
LBB0_8:
	mov	w0, #0
LBB0_9:
	bl	_might_sleep_if
	ldp	x9, x8, [x20, #8]
	sub	x1, x21, x9
	mov	x0, x20
	blr	x8
Lloh18:
	adrp	x0, _gpio_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _gpio_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
LBB0_10:
	mov	x0, x19
	mov	x1, #0
	bl	_desc_set_label
	ldr	x8, [x22]
	ldr	w0, [x8]
	bl	_module_put
	ldr	w0, [x23]
	mov	x1, x19
	bl	_clear_bit
LBB0_11:
Lloh20:
	adrp	x0, _gpio_lock@GOTPAGE
Lloh21:
	ldr	x0, [x0, _gpio_lock@GOTPAGEOFF]
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_extra_checks,8,3               ; @extra_checks
	.comm	_gpio_lock,4,2                  ; @gpio_lock
	.comm	_gpio_desc,8,3                  ; @gpio_desc
	.comm	_FLAG_REQUESTED,4,2             ; @FLAG_REQUESTED
.subsections_via_symbols
