	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gpiod_free_commit
_gpiod_free_commit:                     ## @gpiod_free_commit
	.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	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_might_sleep
	movq	%rbx, %rdi
	callq	_gpiod_unexport
	movq	_gpio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rax
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	movq	_FLAG_REQUESTED@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.3:
	movq	_gpio_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	8(%r15), %edi
	callq	_might_sleep_if
	movq	(%r15), %r13
	movq	%rbx, %rdi
	callq	_gpio_chip_hwgpio
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	*%r13
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
LBB0_4:
	movl	4(%rbx), %edi
	callq	_kfree_const
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_desc_set_label
	movq	_FLAG_ACTIVE_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_FLAG_OPEN_DRAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_FLAG_OPEN_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	_FLAG_IS_HOGGED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movl	$1, %r14d
LBB0_5:
	movq	_gpio_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_irqrestore
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gpio_lock,4,2                  ## @gpio_lock
	.comm	_FLAG_REQUESTED,4,2             ## @FLAG_REQUESTED
	.comm	_FLAG_ACTIVE_LOW,4,2            ## @FLAG_ACTIVE_LOW
	.comm	_FLAG_OPEN_DRAIN,4,2            ## @FLAG_OPEN_DRAIN
	.comm	_FLAG_OPEN_SOURCE,4,2           ## @FLAG_OPEN_SOURCE
	.comm	_FLAG_IS_HOGGED,4,2             ## @FLAG_IS_HOGGED
	.no_dead_strip	_gpiod_free_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gpiod_free_commit
_gpiod_free_commit:                     ; @gpiod_free_commit
	.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	x19, x0
	bl	_might_sleep
	mov	x0, x19
	bl	_gpiod_unexport
Lloh0:
	adrp	x0, _gpio_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _gpio_lock@GOTPAGEOFF]
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	ldr	x20, [x8]
	cbz	x20, LBB0_5
; %bb.1:
Lloh2:
	adrp	x22, _FLAG_REQUESTED@GOTPAGE
Lloh3:
	ldr	x22, [x22, _FLAG_REQUESTED@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x19
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.3:
Lloh4:
	adrp	x21, _gpio_lock@GOTPAGE
Lloh5:
	ldr	x21, [x21, _gpio_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	w0, [x20, #8]
	bl	_might_sleep_if
	ldr	x23, [x20]
	mov	x0, x19
	bl	_gpio_chip_hwgpio
	mov	x1, x0
	mov	x0, x20
	blr	x23
	mov	x0, x21
	bl	_spin_lock_irqsave
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_kfree_const
	mov	x0, x19
	mov	x1, #0
	bl	_desc_set_label
Lloh6:
	adrp	x8, _FLAG_ACTIVE_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLAG_ACTIVE_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clear_bit
Lloh9:
	adrp	x8, _FLAG_OPEN_DRAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLAG_OPEN_DRAIN@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
Lloh12:
	adrp	x8, _FLAG_OPEN_SOURCE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FLAG_OPEN_SOURCE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
Lloh15:
	adrp	x8, _FLAG_IS_HOGGED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FLAG_IS_HOGGED@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
	mov	w19, #1
	b	LBB0_6
LBB0_5:
	mov	w19, #0
LBB0_6:
Lloh18:
	adrp	x0, _gpio_lock@GOTPAGE
Lloh19:
	ldr	x0, [x0, _gpio_lock@GOTPAGEOFF]
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_gpio_lock,4,2                  ; @gpio_lock
	.comm	_FLAG_REQUESTED,4,2             ; @FLAG_REQUESTED
	.comm	_FLAG_ACTIVE_LOW,4,2            ; @FLAG_ACTIVE_LOW
	.comm	_FLAG_OPEN_DRAIN,4,2            ; @FLAG_OPEN_DRAIN
	.comm	_FLAG_OPEN_SOURCE,4,2           ; @FLAG_OPEN_SOURCE
	.comm	_FLAG_IS_HOGGED,4,2             ; @FLAG_IS_HOGGED
	.no_dead_strip	_gpiod_free_commit
.subsections_via_symbols
