	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wcove_gpio_set_config
_wcove_gpio_set_config:                 ## @wcove_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	callq	_gpiochip_get_data
	movq	%rax, %r14
	movq	_CTRL_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_to_reg
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_pinconf_to_config_param
	cmpl	$128, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.4:
	movl	(%r14), %edi
	movq	_CTLO_DRV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CTLO_DRV_OD@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_6:
	movl	(%r14), %edi
	movq	_CTLO_DRV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CTLO_DRV_CMOS@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ecx
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_7:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL_OUT,4,2                   ## @CTRL_OUT
	.comm	_CTLO_DRV_MASK,4,2              ## @CTLO_DRV_MASK
	.comm	_CTLO_DRV_OD,4,2                ## @CTLO_DRV_OD
	.comm	_CTLO_DRV_CMOS,4,2              ## @CTLO_DRV_CMOS
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_wcove_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 wcove_gpio_set_config
_wcove_gpio_set_config:                 ; @wcove_gpio_set_config
	.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	x21, x2
	mov	x19, x1
	bl	_gpiochip_get_data
	mov	x20, x0
Lloh0:
	adrp	x8, _CTRL_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTRL_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_to_reg
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	x0, x21
	bl	_pinconf_to_config_param
	cmp	w0, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #129
	b.ne	LBB0_7
; %bb.3:
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _CTLO_DRV_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CTLO_DRV_MASK@GOTPAGEOFF]
Lloh5:
	adrp	x9, _CTLO_DRV_OD@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CTLO_DRV_OD@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _CTLO_DRV_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CTLO_DRV_MASK@GOTPAGEOFF]
Lloh9:
	adrp	x9, _CTLO_DRV_CMOS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CTLO_DRV_CMOS@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x8]
	ldr	w3, [x9]
	mov	x1, x19
	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
	b	_regmap_update_bits
LBB0_7:
Lloh11:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL_OUT,4,2                   ; @CTRL_OUT
	.comm	_CTLO_DRV_MASK,4,2              ; @CTLO_DRV_MASK
	.comm	_CTLO_DRV_OD,4,2                ; @CTLO_DRV_OD
	.comm	_CTLO_DRV_CMOS,4,2              ; @CTLO_DRV_CMOS
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_wcove_gpio_set_config
.subsections_via_symbols
