	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_gpio_enable               ## -- Begin function bttv_gpio_enable
	.p2align	4, 0x90
_bttv_gpio_enable:                      ## @bttv_gpio_enable
	.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), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	callq	_gpio_inout
	movq	_bttv_gpio@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_bttv_gpio_tracking
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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
	.comm	_bttv_gpio,8,3                  ## @bttv_gpio
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"extern enable"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_gpio_enable               ; -- Begin function bttv_gpio_enable
	.p2align	2
_bttv_gpio_enable:                      ; @bttv_gpio_enable
	.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_5
; %bb.1:
Lloh3:
	adrp	x8, _bttvs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _bttvs@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x19, [x8, w0, uxtw #3]
	cbz	x19, LBB0_6
; %bb.2:
	mov	x0, x1
	mov	x1, x2
	bl	_gpio_inout
Lloh6:
	adrp	x8, _bttv_gpio@GOTPAGE
Lloh7:
	ldr	x8, [x8, _bttv_gpio@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_bttv_gpio_tracking
LBB0_4:
	mov	w0, #0
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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
	.comm	_bttv_gpio,8,3                  ; @bttv_gpio
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"extern enable"

.subsections_via_symbols
