	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tb10x_gpio_request_enable
_tb10x_gpio_request_enable:             ## @tb10x_gpio_request_enable
	.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	%edx, %ebx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r15), %r8d
	testl	%r8d, %r8d
	jle	LBB0_1
## %bb.3:
	movq	24(%r15), %r10
	movl	$-1, %r12d
	xorl	%edx, %edx
	movl	$-1, %r13d
	jmp	LBB0_4
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 24(%r10,%rdi)
	je	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r9d, %r13d
	movl	%r11d, %r12d
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%r8, %rdx
	je	LBB0_12
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rdx, %rdi
	shlq	$5, %rdi
	movslq	4(%r10,%rdi), %r11
	testq	%r11, %r11
	js	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r10,%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r10,%rdi), %r9d
	movq	16(%r10,%rdi), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%ebx, (%rcx,%rsi,4)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=2
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_8
	jmp	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rax
	shlq	$4, %r11
	cmpq	$0, 8(%rax,%r11)
	je	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r9d, (%rax,%r11)
	jne	LBB0_11
## %bb.16:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_12:
	movl	8(%r15), %esi
	movl	%ebx, %edi
	callq	_set_bit
	testl	%r12d, %r12d
	js	LBB0_2
## %bb.13:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_tb10x_pinctrl_set_config
	jmp	LBB0_2
LBB0_1:
	movl	8(%r15), %esi
	movl	%ebx, %edi
	callq	_set_bit
LBB0_2:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_tb10x_gpio_request_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tb10x_gpio_request_enable
_tb10x_gpio_request_enable:             ; @tb10x_gpio_request_enable
	.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, x2
	bl	_pinctrl_dev_get_drvdata
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_15
; %bb.1:
	mov	x9, #0
	ldr	x10, [x20, #24]
	mov	w22, #-1
	mov	w23, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x1
	mov	x22, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x1, x23
	mov	x0, x22
	add	x11, x10, x9, lsl #5
	ldr	w22, [x11, #4]
	tbnz	w22, #31, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w12, [x11, #8]
	cmp	w12, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w23, [x11]
	sxtw	x11, w22
	add	x13, x10, x9, lsl #5
	ldr	x13, [x13, #16]
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x13]
	cmp	w14, w21
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x13, x13, #4
	subs	x12, x12, #1
	b.ne	LBB0_7
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x12, x10, x9, lsl #5
	ldr	x12, [x12, #24]
	cbnz	x12, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x12, [x20, #16]
	add	x13, x12, x11, lsl #4
	ldr	x13, [x13, #8]
	cbz	x13, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	lsl	x11, x11, #4
	ldr	w11, [x12, x11]
	mov	x22, x0
	cmp	w11, w23
	mov	x23, x1
	b.ne	LBB0_3
; %bb.12:
	mov	x0, x19
	bl	_mutex_unlock
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_13:
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_set_bit
	tbnz	w22, #31, LBB0_16
; %bb.14:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_tb10x_pinctrl_set_config
	b	LBB0_16
LBB0_15:
	ldr	w1, [x20, #8]
	mov	x0, x21
	bl	_set_bit
LBB0_16:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
LBB0_17:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_tb10x_gpio_request_enable
.subsections_via_symbols
