	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function winbond_gpio_iprobe
_winbond_gpio_iprobe:                   ## @winbond_gpio_iprobe
	.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
	movq	%rdi, %r14
	movq	_params@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	callq	_winbond_sio_enter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.4:
	movq	(%r15), %rdi
	callq	_winbond_gpio_configure
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_winbond_sio_leave
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.5:
	movl	8(%r15), %edi
	callq	_hweight_long
	shll	$3, %eax
	movq	_winbond_gpio_chip@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	movl	8(%r15), %ebx
	movl	$5, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_7
## %bb.6:
	addl	$-3, (%r12)
LBB0_7:
	movq	%r14, 8(%r12)
	movq	_params@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_gpiochip_add_data         ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_2:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_params,16,3                    ## @params
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_winbond_gpio_chip,16,3         ## @winbond_gpio_chip
	.no_dead_strip	_winbond_gpio_iprobe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function winbond_gpio_iprobe
_winbond_gpio_iprobe:                   ; @winbond_gpio_iprobe
	.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, x0
Lloh0:
	adrp	x21, _params@GOTPAGE
Lloh1:
	ldr	x21, [x21, _params@GOTPAGEOFF]
	ldr	x0, [x21]
	cbz	x0, LBB0_6
; %bb.1:
	bl	_winbond_sio_enter
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x0, [x21]
	bl	_winbond_gpio_configure
	mov	x20, x0
	ldr	x0, [x21]
	bl	_winbond_sio_leave
	cbnz	w20, LBB0_7
; %bb.3:
	ldr	w0, [x21, #8]
	bl	_hweight_long
	lsl	w8, w0, #3
Lloh2:
	adrp	x20, _winbond_gpio_chip@GOTPAGE
Lloh3:
	ldr	x20, [x20, _winbond_gpio_chip@GOTPAGEOFF]
	str	w8, [x20]
	ldr	w21, [x21, #8]
	mov	w0, #5
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_5
; %bb.4:
	ldr	w8, [x20]
	sub	w8, w8, #3
	str	w8, [x20]
LBB0_5:
	str	x19, [x20, #8]
Lloh4:
	adrp	x2, _params@GOTPAGE
Lloh5:
	ldr	x2, [x2, _params@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	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	_devm_gpiochip_add_data
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_params,16,3                    ; @params
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_winbond_gpio_chip,16,3         ; @winbond_gpio_chip
	.no_dead_strip	_winbond_gpio_iprobe
.subsections_via_symbols
