	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpiod_set_transitory           ## -- Begin function gpiod_set_transitory
	.p2align	4, 0x90
_gpiod_set_transitory:                  ## @gpiod_set_transitory
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_VALIDATE_DESC
	leaq	8(%r15), %rsi
	movq	_FLAG_TRANSITORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	callq	_set_bit
	jmp	LBB0_3
LBB0_2:
	callq	_clear_bit
LBB0_3:
	movq	(%r15), %rax
	movq	8(%rax), %rbx
	xorl	%eax, %eax
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.4:
	xorl	%esi, %esi
	testl	%r14d, %r14d
	sete	%sil
	movq	_PIN_CONFIG_PERSIST_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pinconf_to_config_packed
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_gpio_chip_hwgpio
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	*(%rbx)
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	movl	%eax, %edx
	addl	(%rcx), %edx
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_dbg
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_TRANSITORY,4,2            ## @FLAG_TRANSITORY
	.comm	_PIN_CONFIG_PERSIST_STATE,4,2   ## @PIN_CONFIG_PERSIST_STATE
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Persistence not supported for GPIO %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gpiod_set_transitory           ; -- Begin function gpiod_set_transitory
	.p2align	2
_gpiod_set_transitory:                  ; @gpiod_set_transitory
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_VALIDATE_DESC
Lloh0:
	adrp	x8, _FLAG_TRANSITORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_TRANSITORY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	cbz	w20, LBB0_2
; %bb.1:
	bl	_set_bit
	b	LBB0_3
LBB0_2:
	bl	_clear_bit
LBB0_3:
	ldr	x8, [x19]
	ldr	x21, [x8, #8]
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.4:
	cmp	w20, #0
	cset	w1, eq
Lloh3:
	adrp	x8, _PIN_CONFIG_PERSIST_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIN_CONFIG_PERSIST_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_pinconf_to_config_packed
	mov	x22, x0
	mov	x0, x19
	bl	_gpio_chip_hwgpio
	mov	x20, x0
	ldr	x8, [x21]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	blr	x8
Lloh6:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.5:
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_TRANSITORY,4,2            ; @FLAG_TRANSITORY
	.comm	_PIN_CONFIG_PERSIST_STATE,4,2   ; @PIN_CONFIG_PERSIST_STATE
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Persistence not supported for GPIO %d\n"

.subsections_via_symbols
