	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_setgpio                ## -- Begin function saa7146_setgpio
	.p2align	4, 0x90
_saa7146_setgpio:                       ## @saa7146_setgpio
	.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	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	xorl	%edi, %edi
	cmpl	$4, %esi
	setge	%dil
	callq	_BUG_ON
	movq	_GPIO_CTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_saa7146_read
	shll	$3, %ebx
	movl	$255, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	shll	%cl, %r15d
	notl	%edx
	andl	%eax, %edx
	orl	%edx, %r15d
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_saa7146_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_CTRL,4,2                  ## @GPIO_CTRL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_setgpio                ; -- Begin function saa7146_setgpio
	.p2align	2
_saa7146_setgpio:                       ; @saa7146_setgpio
	.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, x2
	mov	x20, x1
	mov	x21, x0
	cmp	w1, #3
	cset	w0, gt
	bl	_BUG_ON
Lloh0:
	adrp	x22, _GPIO_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GPIO_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_saa7146_read
	lsl	w8, w20, #3
	mov	w9, #255
	lsl	w9, w9, w8
	bic	w9, w0, w9
	lsl	w8, w19, w8
	orr	w2, w9, w8
	ldr	w1, [x22]
	mov	x0, x21
	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	_saa7146_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_CTRL,4,2                  ; @GPIO_CTRL
.subsections_via_symbols
