	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm8350_gpio_config             ## -- Begin function wm8350_gpio_config
	.p2align	4, 0x90
_wm8350_gpio_config:                    ## @wm8350_gpio_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
	movl	%r8d, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	24(%rbp), %r13d
	movl	16(%rbp), %r12d
	movq	_WM8350_GPIO_PULL_NONE@GOTPCREL(%rip), %rax
	cmpl	%r9d, (%rax)
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_gpio_set_pull_up
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
LBB0_9:
	callq	_gpio_set_pull_down
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_11
LBB0_3:
	movq	_WM8350_GPIO_PULL_UP@GOTPCREL(%rip), %rax
	cmpl	%r9d, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_gpio_set_pull_down
	testq	%rax, %rax
	jne	LBB0_15
## %bb.5:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_gpio_set_pull_up
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_11
LBB0_6:
	movq	_WM8350_GPIO_PULL_DOWN@GOTPCREL(%rip), %rax
	cmpl	%r9d, (%rax)
	jne	LBB0_11
## %bb.7:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	callq	_gpio_set_pull_up
	testq	%rax, %rax
	jne	LBB0_15
## %bb.8:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	jmp	LBB0_9
LBB0_11:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_gpio_set_invert
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_gpio_set_polarity
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_wm8350_gpio_set_debounce
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_gpio_set_dir
	testq	%rax, %rax
	je	LBB0_16
LBB0_15:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gpio_set_func                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8350_GPIO_PULL_NONE,4,2      ## @WM8350_GPIO_PULL_NONE
	.comm	_WM8350_GPIO_PULL_UP,4,2        ## @WM8350_GPIO_PULL_UP
	.comm	_WM8350_GPIO_PULL_DOWN,4,2      ## @WM8350_GPIO_PULL_DOWN
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm8350_gpio_config             ; -- Begin function wm8350_gpio_config
	.p2align	2
_wm8350_gpio_config:                    ; @wm8350_gpio_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x7
	mov	x25, x6
	mov	x24, x4
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _WM8350_GPIO_PULL_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8350_GPIO_PULL_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w5
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_gpio_set_pull_up
	cbnz	x0, LBB0_13
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_gpio_set_pull_down
	cbnz	x0, LBB0_13
	b	LBB0_9
LBB0_3:
Lloh3:
	adrp	x8, _WM8350_GPIO_PULL_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM8350_GPIO_PULL_UP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w5
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_gpio_set_pull_down
	cbnz	x0, LBB0_13
; %bb.5:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_gpio_set_pull_up
	cbnz	x0, LBB0_13
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x8, _WM8350_GPIO_PULL_DOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _WM8350_GPIO_PULL_DOWN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w5
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #0
	bl	_gpio_set_pull_up
	cbnz	x0, LBB0_13
; %bb.8:
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_gpio_set_pull_down
	cbnz	x0, LBB0_13
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x25
	bl	_gpio_set_invert
	cbnz	x0, LBB0_13
; %bb.10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	bl	_gpio_set_polarity
	cbnz	x0, LBB0_13
; %bb.11:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_wm8350_gpio_set_debounce
	cbnz	x0, LBB0_13
; %bb.12:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_gpio_set_dir
	cbz	x0, LBB0_14
LBB0_13:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_gpio_set_func
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8350_GPIO_PULL_NONE,4,2      ; @WM8350_GPIO_PULL_NONE
	.comm	_WM8350_GPIO_PULL_UP,4,2        ; @WM8350_GPIO_PULL_UP
	.comm	_WM8350_GPIO_PULL_DOWN,4,2      ; @WM8350_GPIO_PULL_DOWN
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
