	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tc3589x_gpio_set_config
_tc3589x_gpio_set_config:               ## @tc3589x_gpio_set_config
	.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	%rdx, %r13
	movl	%esi, %r15d
	callq	_gpiochip_get_data
	movq	(%rax), %r14
	movq	_TC3589x_GPIOODM0@GOTPCREL(%rip), %rax
	movl	%r15d, %ebx
	shrl	$2, %ebx
	andl	$-2, %ebx
	movq	(%rax), %r12
	addq	%rbx, %r12
	movq	_TC3589x_GPIOODE0@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	andl	$7, %r15d
	movq	%r13, %rdi
	callq	_pinconf_to_config_param
	cmpl	$128, %eax
	je	LBB0_7
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$130, %eax
	jne	LBB0_9
## %bb.3:
	movl	%r15d, %edi
	callq	_BIT
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_4
LBB0_7:
	movl	%r15d, %edi
	callq	_BIT
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_6:
	movl	%r15d, %edi
	callq	_BIT
	movl	%eax, %r13d
	movl	%r15d, %edi
	callq	_BIT
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	movl	%eax, %ecx
LBB0_4:
	callq	_tc3589x_set_bits
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movl	%r15d, %edi
	callq	_BIT
	movl	%eax, %r12d
	movl	%r15d, %edi
	callq	_BIT
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tc3589x_set_bits               ## TAILCALL
LBB0_9:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TC3589x_GPIOODM0,8,3           ## @TC3589x_GPIOODM0
	.comm	_TC3589x_GPIOODE0,8,3           ## @TC3589x_GPIOODE0
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_tc3589x_gpio_set_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tc3589x_gpio_set_config
_tc3589x_gpio_set_config:               ; @tc3589x_gpio_set_config
	.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, x2
	mov	x21, x1
	bl	_gpiochip_get_data
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _TC3589x_GPIOODM0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TC3589x_GPIOODM0@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	lsr	w8, w21, #2
	and	w24, w8, #0x3ffffffe
Lloh3:
	adrp	x8, _TC3589x_GPIOODE0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TC3589x_GPIOODE0@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x20, x8, x24
	and	w21, w21, #0x7
	mov	x0, x22
	bl	_pinconf_to_config_param
	cmp	w0, #128
	b.eq	LBB0_4
; %bb.1:
	add	x22, x23, x24
	cmp	w0, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	bl	_tc3589x_set_bits
	cbnz	w0, LBB0_9
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	b	LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_BIT
	mov	x23, x0
	mov	x0, x21
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_tc3589x_set_bits
	cbnz	w0, LBB0_9
LBB0_6:
	mov	x0, x21
	bl	_BIT
	mov	x22, x0
	mov	x0, x21
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
LBB0_7:
	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	_tc3589x_set_bits
LBB0_8:
Lloh6:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TC3589x_GPIOODM0,8,3           ; @TC3589x_GPIOODM0
	.comm	_TC3589x_GPIOODE0,8,3           ; @TC3589x_GPIOODE0
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_tc3589x_gpio_set_config
.subsections_via_symbols
