	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function af9013_set_gpio
_af9013_set_gpio:                       ## @af9013_set_gpio
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$4, %ebx
	jae	LBB0_1
## %bb.2:
	movslq	%ebx, %rax
	leaq	L_switch.table.af9013_set_gpio(%rip), %rcx
	movl	(%rcx,%rax,4), %esi
	testl	$-3, %ebx
	setne	%cl
	shlb	$2, %cl
	movl	$15, %edx
	shll	%cl, %edx
	movl	(%r12), %edi
	shll	%cl, %r15d
	movl	%r15d, %ecx
	callq	_regmap_update_bits
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	movl	%r13d, %ebx
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%ebx, %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpio %u, gpioval %02x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed %d\n"

	.no_dead_strip	_af9013_set_gpio
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.af9013_set_gpio
L_switch.table.af9013_set_gpio:
	.long	55093                           ## 0xd735
	.long	55093                           ## 0xd735
	.long	55094                           ## 0xd736
	.long	55094                           ## 0xd736

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function af9013_set_gpio
_af9013_set_gpio:                       ; @af9013_set_gpio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_dbg
	cmp	w22, #4
	b.hs	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, l_switch.table.af9013_set_gpio@PAGE
Lloh3:
	add	x8, x8, l_switch.table.af9013_set_gpio@PAGEOFF
	ldr	w1, [x8, w22, sxtw #2]
	tst	w22, #0xfffffffd
	cset	w8, ne
	ldr	w0, [x21]
	lsl	x8, x8, #2
	mov	w9, #15
	lsl	w2, w9, w8
	lsl	w3, w20, w8
	bl	_regmap_update_bits
	mov	x20, x0
	cbnz	w0, LBB0_3
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpio %u, gpioval %02x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed %d\n"

	.no_dead_strip	_af9013_set_gpio
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.af9013_set_gpio
l_switch.table.af9013_set_gpio:
	.long	55093                           ; 0xd735
	.long	55093                           ; 0xd735
	.long	55094                           ; 0xd736
	.long	55094                           ; 0xd736

.subsections_via_symbols
