	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_read_gpio                 ## -- Begin function bttv_read_gpio
	.p2align	4, 0x90
_bttv_read_gpio:                        ## @bttv_read_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_bttv_num@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jbe	LBB0_1
## %bb.3:
	movq	_bttvs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	cmpq	$0, (%rax)
	je	LBB0_6
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	%rsi, %r14
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_gpio_read
	movq	%rax, (%r14)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_bttv_num,4,2                   ## @bttv_num
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_bttvs,8,3                      ## @bttvs
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_read_gpio                 ; -- Begin function bttv_read_gpio
	.p2align	2
_bttv_read_gpio:                        ; @bttv_read_gpio
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _bttv_num@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bttv_num@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ls	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _bttvs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bttvs@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, uxtw #3]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
LBB0_3:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x19, x1
	bl	_gpio_read
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_bttv_num,4,2                   ; @bttv_num
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_bttvs,8,3                      ; @bttvs
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
