	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function winbond_gpio_get
_winbond_gpio_get:                      ## @winbond_gpio_get
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -28(%rbp)
	callq	_gpiochip_get_data
	movq	%rax, %r14
	leaq	-28(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_winbond_gpio_get_info
	movq	(%r14), %rdi
	callq	_winbond_sio_enter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	movq	-40(%rbp), %rax
	movl	8(%rax), %esi
	callq	_winbond_sio_select_logical
	movq	(%r14), %rdi
	movq	-40(%rbp), %rax
	movl	4(%rax), %esi
	movl	-28(%rbp), %edx
	callq	_winbond_sio_reg_btest
	movl	%eax, %r15d
	movq	(%r14), %rdi
	movq	-40(%rbp), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %edx
	callq	_winbond_sio_reg_btest
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	sete	%bl
	testl	%eax, %eax
	cmovel	%r15d, %ebx
	movq	(%r14), %rdi
	callq	_winbond_sio_leave
LBB0_2:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_winbond_gpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function winbond_gpio_get
_winbond_gpio_get:                      ; @winbond_gpio_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	w1, [sp, #12]
	bl	_gpiochip_get_data
	mov	x19, x0
	add	x0, sp, #12
	mov	x1, sp
	bl	_winbond_gpio_get_info
	ldr	x0, [x19]
	bl	_winbond_sio_enter
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	ldr	x8, [sp]
	ldr	w1, [x8, #8]
	bl	_winbond_sio_select_logical
	ldr	x0, [x19]
	ldr	x8, [sp]
	ldr	w1, [x8, #4]
	ldr	w2, [sp, #12]
	bl	_winbond_sio_reg_btest
	mov	x20, x0
	ldr	x0, [x19]
	ldr	x8, [sp]
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_winbond_sio_reg_btest
	cmp	w20, #0
	cset	w8, eq
	cmp	w0, #0
	csel	w20, w20, w8, eq
	ldr	x0, [x19]
	bl	_winbond_sio_leave
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_winbond_gpio_get
.subsections_via_symbols
