	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function egpio_set
_egpio_set:                             ## @egpio_set
	.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
	subq	$24, %rsp
	.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, %r14d
	movq	%rdi, %rbx
	movslq	8(%rdi), %rsi
	movl	(%rdi), %ecx
	addl	%r14d, %ecx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %edx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_gpiochip_get_data
	movq	%rax, %r12
	movl	8(%rax), %edi
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_egpio_pos
	movl	%eax, %r14d
	movl	(%r12), %r13d
	addl	%eax, %r13d
	movb	(%rbx), %cl
	shll	%cl, %r14d
	testl	%r15d, %r15d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmoveq	%rax, %rsi
	movl	4(%r12), %eax
	movl	%r14d, %ecx
	sarl	%cl, %eax
	andl	4(%rbx), %eax
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	leaq	8(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	$1, %edi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	orl	4(%r12), %edi
	jmp	LBB0_3
LBB0_2:
	notl	%edi
	andl	4(%r12), %edi
LBB0_3:
	movl	%edi, 4(%r12)
	movl	%r14d, %ecx
	sarl	%cl, %edi
	andl	4(%rbx), %edi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_egpio_writew
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"egpio_set(%s, %d(%d), %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"egpio %s: reg %d = 0x%04x\n"

L_.str.2:                               ## @.str.2
	.asciz	"set"

L_.str.3:                               ## @.str.3
	.asciz	"clear"

	.no_dead_strip	_egpio_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function egpio_set
_egpio_set:                             ; @egpio_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldrsw	x1, [x0, #8]
	ldr	w8, [x0]
	add	w3, w8, w20
	str	x19, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_debug
	mov	x0, x21
	bl	_gpiochip_get_data
	mov	x21, x0
	ldr	w0, [x0, #8]
	bl	_dev_get_drvdata
	mov	x22, x0
	mov	x1, x20
	bl	_egpio_pos
	ldp	w8, w9, [x21]
	add	w23, w8, w0
	ldp	w8, w10, [x22]
	lsl	w25, w0, w8
Lloh2:
	adrp	x8, l_.str.2@PAGE
Lloh3:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh4:
	adrp	x11, l_.str.3@PAGE
Lloh5:
	add	x11, x11, l_.str.3@PAGEOFF
	cmp	w19, #0
	csel	x1, x11, x8, eq
	asr	w8, w9, w25
	and	w3, w8, w10
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x23
	bl	_pr_debug
	add	x24, x22, #8
	mov	x0, x24
	bl	_spin_lock_irqsave
	mov	w8, #1
	lsl	w8, w8, w20
	cbz	w19, LBB0_2
; %bb.1:
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [x21, #4]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [x21, #4]
	asr	w8, w8, w25
	ldr	w9, [x22, #4]
	and	w0, w9, w8
	mov	x1, x22
	mov	x2, x23
	bl	_egpio_writew
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_spin_unlock_irqrestore
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"egpio_set(%s, %d(%d), %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"egpio %s: reg %d = 0x%04x\n"

l_.str.2:                               ; @.str.2
	.asciz	"set"

l_.str.3:                               ; @.str.3
	.asciz	"clear"

	.no_dead_strip	_egpio_set
.subsections_via_symbols
