	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pc8736x_gpio_get
_pc8736x_gpio_get:                      ## @pc8736x_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	%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	%edi, %r14d
	movl	%edi, %r12d
	andl	$-8, %r12d
	movl	%edi, %r15d
	movq	_pc8736x_gpio_base@GOTPCREL(%rip), %rcx
	movq	_port_offset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12), %rdi
	addq	(%rcx), %rdi
	andl	$7, %r15d
	movq	_PORT_IN@GOTPCREL(%rip), %r13
	addq	(%r13), %rdi
	callq	_inb_p
	xorl	%ebx, %ebx
	btl	%r15d, %eax
	setb	%bl
	movq	_pdev@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_port_offset@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r12), %rcx
	movq	_pc8736x_gpio_base@GOTPCREL(%rip), %rax
	addq	(%rax), %rcx
	addq	(%r13), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	callq	_dev_dbg
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pc8736x_gpio_base,8,3          ## @pc8736x_gpio_base
	.comm	_port_offset,8,3                ## @port_offset
	.comm	_PORT_IN,8,3                    ## @PORT_IN
	.comm	_pdev,8,3                       ## @pdev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_gpio_get(%d from %x bit %d) == val %d\n"

	.no_dead_strip	_pc8736x_gpio_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pc8736x_gpio_get
_pc8736x_gpio_get:                      ; @pc8736x_gpio_get
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	and	w22, w0, #0xfffffff8
Lloh0:
	adrp	x23, _pc8736x_gpio_base@GOTPAGE
Lloh1:
	ldr	x23, [x23, _pc8736x_gpio_base@GOTPAGEOFF]
	and	w20, w0, #0x7
Lloh2:
	adrp	x24, _port_offset@GOTPAGE
Lloh3:
	ldr	x24, [x24, _port_offset@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x8, [x8, x22]
	ldr	x9, [x23]
Lloh4:
	adrp	x25, _PORT_IN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PORT_IN@GOTPAGEOFF]
	ldr	x10, [x25]
	add	x8, x8, x9
	add	x0, x8, x10
	bl	_inb_p
	lsr	w8, w0, w20
	and	w21, w8, #0x1
Lloh6:
	adrp	x8, _pdev@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pdev@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
	ldr	x8, [x23]
	ldr	x9, [x24]
	ldr	x9, [x9, x22]
	ldr	x10, [x25]
	add	x8, x9, x8
	add	x3, x8, x10
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x4, x20
	mov	x5, x21
	bl	_dev_dbg
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pc8736x_gpio_base,8,3          ; @pc8736x_gpio_base
	.comm	_port_offset,8,3                ; @port_offset
	.comm	_PORT_IN,8,3                    ; @PORT_IN
	.comm	_pdev,8,3                       ; @pdev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_gpio_get(%d from %x bit %d) == val %d\n"

	.no_dead_strip	_pc8736x_gpio_get
.subsections_via_symbols
