	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_go7007_init
_saa7134_go7007_init:                   ## @saa7134_go7007_init
	.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
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	16(%r14), %rsi
	movq	_board_voyager@GOTPCREL(%rip), %rdi
	callq	_go7007_alloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$88, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %rbx
	movq	_GO7007_BOARDID_PCI_VOYAGER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 80(%r15)
	movl	76(%r15), %r12d
	movq	16(%r14), %rdi
	callq	_pci_name
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %edi
	movl	$4, %esi
	movq	%rax, %rcx
	callq	_snprintf
	movl	72(%r15), %edi
	movq	_saa7134_boards@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_saa7134_go7007_hpi_ops@GOTPCREL(%rip), %rax
	movq	%rax, 64(%r15)
	movq	%rbx, 56(%r15)
	movq	%r14, 48(%rbx)
	movq	%rbx, %r12
	addq	$40, %r12
	movq	_saa7134_go7007_sd_ops@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_subdev_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_set_subdevdata
	movl	40(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movl	(%r13), %edi
	callq	_get_zeroed_page
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movl	(%r13), %edi
	callq	_get_zeroed_page
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	32(%r15), %rax
	movq	_GO7007_BOARD_USE_ONBOARD_I2C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%rax), %esi
	movq	%r15, %rdi
	callq	_go7007_boot_encoder
	testq	%rax, %rax
	js	LBB0_9
## %bb.5:
	movq	32(%r15), %rax
	movl	4(%rax), %esi
	movq	%r15, %rdi
	callq	_go7007_register_encoder
	testq	%rax, %rax
	js	LBB0_9
## %bb.6:
	leaq	24(%r15), %rdi
	movq	%r12, %rsi
	callq	_v4l2_device_register_subdev
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_info
LBB0_8:
	movq	%r15, %rax
	addq	$20, %rax
	movq	%rax, 8(%r14)
	movq	_STATUS_ONLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_9:
	movq	8(%rbx), %rax
LBB0_10:
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rdi
	callq	_free_page
LBB0_12:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.13:
	callq	_free_page
LBB0_14:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_15:
	movq	%r15, %rdi
	callq	_kfree
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"saa7134-go7007: probing new SAA713X board\n"

	.comm	_board_voyager,4,2              ## @board_voyager
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GO7007_BOARDID_PCI_VOYAGER,4,2 ## @GO7007_BOARDID_PCI_VOYAGER
L_.str.1:                               ## @.str.1
	.asciz	"PCI:%s"

	.comm	_saa7134_boards,8,3             ## @saa7134_boards
	.comm	_saa7134_go7007_hpi_ops,4,2     ## @saa7134_go7007_hpi_ops
	.comm	_saa7134_go7007_sd_ops,4,2      ## @saa7134_go7007_sd_ops
L_.str.2:                               ## @.str.2
	.asciz	"saa7134-go7007"

	.comm	_GO7007_BOARD_USE_ONBOARD_I2C,4,2 ## @GO7007_BOARD_USE_ONBOARD_I2C
L_.str.3:                               ## @.str.3
	.asciz	"saa7134-go7007: register subdev failed\n"

	.comm	_STATUS_ONLINE,4,2              ## @STATUS_ONLINE
	.no_dead_strip	_saa7134_go7007_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_go7007_init
_saa7134_go7007_init:                   ; @saa7134_go7007_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	ldr	x1, [x20, #16]
Lloh2:
	adrp	x0, _board_voyager@GOTPAGE
Lloh3:
	ldr	x0, [x0, _board_voyager@GOTPAGEOFF]
	bl	_go7007_alloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #88
	bl	_kzalloc
	cbz	x0, LBB0_15
; %bb.2:
	mov	x21, x0
Lloh6:
	adrp	x8, _GO7007_BOARDID_PCI_VOYAGER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GO7007_BOARDID_PCI_VOYAGER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #80]
	ldr	w22, [x19, #76]
	ldr	x0, [x20, #16]
	bl	_pci_name
	mov	x3, x0
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w1, #4
	bl	_snprintf
	ldr	w0, [x19, #72]
Lloh11:
	adrp	x8, _saa7134_boards@GOTPAGE
Lloh12:
	ldr	x8, [x8, _saa7134_boards@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x20]
	ldr	x1, [x8, x9, lsl #3]
	mov	w2, #4
	bl	_strscpy
Lloh14:
	adrp	x8, _saa7134_go7007_hpi_ops@GOTPAGE
Lloh15:
	ldr	x8, [x8, _saa7134_go7007_hpi_ops@GOTPAGEOFF]
	stp	x21, x8, [x19, #56]
	str	x20, [x21, #48]
	add	x22, x21, #40
Lloh16:
	adrp	x1, _saa7134_go7007_sd_ops@GOTPAGE
Lloh17:
	ldr	x1, [x1, _saa7134_go7007_sd_ops@GOTPAGEOFF]
	mov	x0, x22
	bl	_v4l2_subdev_init
	mov	x0, x22
	mov	x1, x21
	bl	_v4l2_set_subdevdata
	ldr	w0, [x21, #40]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strscpy
	ldr	w0, [x23]
	bl	_get_zeroed_page
	str	x0, [x21, #8]
	cbz	x0, LBB0_10
; %bb.3:
	ldr	w0, [x23]
	bl	_get_zeroed_page
	str	x0, [x21]
	cbz	x0, LBB0_9
; %bb.4:
	ldr	x8, [x19, #32]
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _GO7007_BOARD_USE_ONBOARD_I2C@GOTPAGE
Lloh21:
	ldr	x9, [x9, _GO7007_BOARD_USE_ONBOARD_I2C@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	x0, x19
	bl	_go7007_boot_encoder
	tbnz	x0, #63, LBB0_9
; %bb.5:
	ldr	x8, [x19, #32]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_go7007_register_encoder
	tbnz	x0, #63, LBB0_9
; %bb.6:
	add	x0, x19, #24
	mov	x1, x22
	bl	_v4l2_device_register_subdev
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
LBB0_8:
	mov	w0, #0
	add	x8, x19, #20
	str	x8, [x20, #8]
Lloh25:
	adrp	x8, _STATUS_ONLINE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _STATUS_ONLINE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_17
LBB0_9:
	ldr	x0, [x21, #8]
LBB0_10:
	cbz	x0, LBB0_12
; %bb.11:
	bl	_free_page
LBB0_12:
	ldr	x0, [x21]
	cbz	x0, LBB0_14
; %bb.13:
	bl	_free_page
LBB0_14:
	mov	x0, x21
	bl	_kfree
LBB0_15:
	mov	x0, x19
	bl	_kfree
LBB0_16:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"saa7134-go7007: probing new SAA713X board\n"

	.comm	_board_voyager,4,2              ; @board_voyager
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GO7007_BOARDID_PCI_VOYAGER,4,2 ; @GO7007_BOARDID_PCI_VOYAGER
l_.str.1:                               ; @.str.1
	.asciz	"PCI:%s"

	.comm	_saa7134_boards,8,3             ; @saa7134_boards
	.comm	_saa7134_go7007_hpi_ops,4,2     ; @saa7134_go7007_hpi_ops
	.comm	_saa7134_go7007_sd_ops,4,2      ; @saa7134_go7007_sd_ops
l_.str.2:                               ; @.str.2
	.asciz	"saa7134-go7007"

	.comm	_GO7007_BOARD_USE_ONBOARD_I2C,4,2 ; @GO7007_BOARD_USE_ONBOARD_I2C
l_.str.3:                               ; @.str.3
	.asciz	"saa7134-go7007: register subdev failed\n"

	.comm	_STATUS_ONLINE,4,2              ; @STATUS_ONLINE
	.no_dead_strip	_saa7134_go7007_init
.subsections_via_symbols
