	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wmt_gpio_get_value
_wmt_gpio_get_value:                    ## @wmt_gpio_get_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	%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	%rax, %r14
	movq	16(%r15), %rax
	movq	(%rax,%r12,8), %rdi
	movq	_NO_REG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_2
## %bb.1:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	addq	(%r15), %rdi
	callq	_readl_relaxed
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_BIT
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ebx, %ecx
	setne	%al
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_REG,8,3                     ## @NO_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no data in register defined\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_wmt_gpio_get_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_get_value
_wmt_gpio_get_value:                    ; @wmt_gpio_get_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	x20, x1
	bl	_gpiochip_get_data
	mov	x19, x0
	mov	x0, x20
	bl	_WMT_BANK_FROM_PIN
	mov	x21, x0
	mov	x0, x20
	bl	_WMT_BIT_FROM_PIN
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21, lsl #3]
Lloh0:
	adrp	x9, _NO_REG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NO_REG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x20, x0
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_readl_relaxed
	mov	x19, x0
	mov	x0, x20
	bl	_BIT
	tst	w0, w19
	cset	w0, ne
LBB0_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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.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 in register defined\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_wmt_gpio_get_value
.subsections_via_symbols
