	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmt_gpio_set_value
_wmt_gpio_set_value:                    ## @wmt_gpio_set_value
	.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	%edx, %r14d
	movl	%esi, %ebx
	callq	_gpiochip_get_data
	movq	%rax, %r15
	movl	%ebx, %edi
	callq	_WMT_BANK_FROM_PIN
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_WMT_BIT_FROM_PIN
	movq	8(%r15), %rcx
	movq	(%rcx,%r12,8), %rbx
	movq	_NO_REG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	jne	LBB0_1
## %bb.3:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_1:
	movq	%rax, %rdi
	callq	_BIT
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmt_setbits                    ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wmt_clearbits                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_REG,8,3                     ## @NO_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no data out register defined\n"

	.no_dead_strip	_wmt_gpio_set_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wmt_gpio_set_value
_wmt_gpio_set_value:                    ; @wmt_gpio_set_value
	.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	x19, x2
	mov	x21, x1
	bl	_gpiochip_get_data
	mov	x20, x0
	mov	x0, x21
	bl	_WMT_BANK_FROM_PIN
	mov	x22, x0
	mov	x0, x21
	bl	_WMT_BIT_FROM_PIN
	ldr	x8, [x20, #8]
	ldr	x21, [x8, x22, lsl #3]
Lloh0:
	adrp	x8, _NO_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NO_REG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	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	_dev_err
LBB0_2:
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	cbz	w19, LBB0_4
; %bb.3:
	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	_wmt_setbits
LBB0_4:
	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	_wmt_clearbits
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_REG,8,3                     ; @NO_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no data out register defined\n"

	.no_dead_strip	_wmt_gpio_set_value
.subsections_via_symbols
