	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hexium_probe
_hexium_probe:                          ## @hexium_probe
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_DEB_EE
	cmpq	$0, (%r15)
	je	LBB0_1
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	_MASK_08@GOTPCREL(%rip), %rax
	movq	_MASK_24@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MC1@GOTPCREL(%rip), %rax
	movq	_MASK_10@GOTPCREL(%rip), %r12
	orl	(%r12), %edx
	movl	(%rax), %esi
	movq	_MASK_26@GOTPCREL(%rip), %r13
	orl	(%r13), %edx
	movq	%r15, %rdi
	callq	_saa7146_write
	movq	_DD1_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$16777472, %edx                 ## imm = 0x1000100
	callq	_saa7146_write
	movq	_DD1_STREAM_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_saa7146_write
	movq	_MC2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASK_09@GOTPCREL(%rip), %rax
	movq	_MASK_25@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	orl	(%r12), %edx
	orl	(%r13), %edx
	movq	%r15, %rdi
	callq	_saa7146_write
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_SAA7146_I2C_BUS_BIT_RATE_480@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_saa7146_i2c_adapter_prepare
	movq	%r14, %rdi
	callq	_i2c_add_adapter
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	_SAA7146_GPIO_OUTHI@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_saa7146_setgpio
	movl	(%rbx), %edx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_saa7146_setgpio
	movl	$10, %edi
	callq	_mdelay
	movq	16(%r15), %rax
	cmpl	$6088, (%rax)                   ## imm = 0x17C8
	jne	LBB0_13
## %bb.8:
	movl	4(%rax), %eax
	cmpl	$8449, %eax                     ## imm = 0x2101
	je	LBB0_12
## %bb.9:
	cmpl	$257, %eax                      ## imm = 0x101
	jne	LBB0_13
## %bb.10:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_info
	movq	%r14, 8(%r15)
	movq	_HEXIUM_ORION_1SVHS_3BNC@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_13:
	movq	_I2C_SMBUS_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_I2C_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-48(%rbp), %rax
	movq	%rax, (%rsp)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$78, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_i2c_smbus_xfer
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	callq	_i2c_del_adapter
	jmp	LBB0_16
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_DEB_S
LBB0_16:
	movq	%r14, %rdi
	callq	_kfree
	movq	_EFAULT@GOTPCREL(%rip), %rax
LBB0_17:
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_info
	movq	%r14, 8(%r15)
	movq	_HEXIUM_HV_PCI6_ORION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	jmp	LBB0_18
LBB0_12:
	leaq	L_.str.4(%rip), %rdi
	callq	_pr_info
	movq	%r14, 8(%r15)
	movq	_HEXIUM_ORION_4BNC@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MC1,4,2                        ## @MC1
	.comm	_MASK_08,4,2                    ## @MASK_08
	.comm	_MASK_24,4,2                    ## @MASK_24
	.comm	_MASK_10,4,2                    ## @MASK_10
	.comm	_MASK_26,4,2                    ## @MASK_26
	.comm	_DD1_INIT,4,2                   ## @DD1_INIT
	.comm	_DD1_STREAM_B,4,2               ## @DD1_STREAM_B
	.comm	_MC2,4,2                        ## @MC2
	.comm	_MASK_09,4,2                    ## @MASK_09
	.comm	_MASK_25,4,2                    ## @MASK_25
L_.str.1:                               ## @.str.1
	.asciz	"hexium orion"

	.comm	_SAA7146_I2C_BUS_BIT_RATE_480,4,2 ## @SAA7146_I2C_BUS_BIT_RATE_480
L_.str.2:                               ## @.str.2
	.asciz	"cannot register i2c-device. skipping.\n"

	.comm	_SAA7146_GPIO_OUTHI,4,2         ## @SAA7146_GPIO_OUTHI
L_.str.3:                               ## @.str.3
	.asciz	"device is a Hexium Orion w/ 1 SVHS + 3 BNC inputs\n"

	.comm	_HEXIUM_ORION_1SVHS_3BNC,4,2    ## @HEXIUM_ORION_1SVHS_3BNC
L_.str.4:                               ## @.str.4
	.asciz	"device is a Hexium Orion w/ 4 BNC inputs\n"

	.comm	_HEXIUM_ORION_4BNC,4,2          ## @HEXIUM_ORION_4BNC
	.comm	_I2C_SMBUS_READ,4,2             ## @I2C_SMBUS_READ
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ## @I2C_SMBUS_BYTE_DATA
L_.str.5:                               ## @.str.5
	.asciz	"device is a Hexium HV-PCI6/Orion (old)\n"

	.comm	_HEXIUM_HV_PCI6_ORION,4,2       ## @HEXIUM_HV_PCI6_ORION
	.no_dead_strip	_hexium_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hexium_probe
_hexium_probe:                          ; @hexium_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DEB_EE
	ldr	x8, [x20]
	cbz	x8, LBB0_12
; %bb.1:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
Lloh5:
	adrp	x8, _MC1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MC1@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _MASK_08@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MASK_08@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _MASK_24@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MASK_24@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x21, _MASK_10@GOTPAGE
Lloh15:
	ldr	x21, [x21, _MASK_10@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w8, w9
Lloh16:
	adrp	x22, _MASK_26@GOTPAGE
Lloh17:
	ldr	x22, [x22, _MASK_26@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_saa7146_write
Lloh18:
	adrp	x8, _DD1_INIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DD1_INIT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #16777472
	bl	_saa7146_write
Lloh21:
	adrp	x8, _DD1_STREAM_B@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DD1_STREAM_B@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_saa7146_write
Lloh24:
	adrp	x8, _MC2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MC2@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _MASK_09@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MASK_09@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _MASK_25@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MASK_25@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x21]
	orr	w8, w8, w9
	ldr	w9, [x22]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_saa7146_write
	ldr	w0, [x19]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh35:
	adrp	x8, _SAA7146_I2C_BUS_BIT_RATE_480@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SAA7146_I2C_BUS_BIT_RATE_480@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_saa7146_i2c_adapter_prepare
	mov	x0, x19
	bl	_i2c_add_adapter
	tbnz	x0, #63, LBB0_10
; %bb.3:
Lloh38:
	adrp	x21, _SAA7146_GPIO_OUTHI@GOTPAGE
Lloh39:
	ldr	x21, [x21, _SAA7146_GPIO_OUTHI@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #0
	bl	_saa7146_setgpio
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #2
	bl	_saa7146_setgpio
	mov	w0, #10
	bl	_mdelay
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
	mov	w10, #6088
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.4:
	ldr	w8, [x8, #4]
	mov	w9, #8449
	cmp	w8, w9
	b.eq	LBB0_16
; %bb.5:
	cmp	w8, #257
	b.ne	LBB0_8
; %bb.6:
Lloh40:
	adrp	x0, l_.str.3@PAGE
Lloh41:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
	mov	w0, #0
	str	x19, [x20, #8]
Lloh42:
	adrp	x8, _HEXIUM_ORION_1SVHS_3BNC@GOTPAGE
Lloh43:
	ldr	x8, [x8, _HEXIUM_ORION_1SVHS_3BNC@GOTPAGEOFF]
	b	LBB0_17
LBB0_7:
Lloh44:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_8:
Lloh46:
	adrp	x8, _I2C_SMBUS_READ@GOTPAGE
Lloh47:
	ldr	x8, [x8, _I2C_SMBUS_READ@GOTPAGEOFF]
Lloh48:
	ldr	w3, [x8]
Lloh49:
	adrp	x8, _I2C_SMBUS_BYTE_DATA@GOTPAGE
Lloh50:
	ldr	x8, [x8, _I2C_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh51:
	ldr	w5, [x8]
	add	x6, sp, #8
	mov	x0, x19
	mov	w1, #78
	mov	w2, #0
	mov	w4, #0
	bl	_i2c_smbus_xfer
	cbz	w0, LBB0_15
; %bb.9:
	mov	x0, x19
	bl	_i2c_del_adapter
	b	LBB0_11
LBB0_10:
Lloh52:
	adrp	x0, l_.str.2@PAGE
Lloh53:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DEB_S
LBB0_11:
	mov	x0, x19
	bl	_kfree
LBB0_12:
Lloh54:
	adrp	x8, _EFAULT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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
	add	sp, sp, #64
	ret
LBB0_15:
Lloh56:
	adrp	x0, l_.str.5@PAGE
Lloh57:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_info
	mov	w0, #0
	str	x19, [x20, #8]
Lloh58:
	adrp	x8, _HEXIUM_HV_PCI6_ORION@GOTPAGE
Lloh59:
	ldr	x8, [x8, _HEXIUM_HV_PCI6_ORION@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh60:
	adrp	x0, l_.str.4@PAGE
Lloh61:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
	mov	w0, #0
	str	x19, [x20, #8]
Lloh62:
	adrp	x8, _HEXIUM_ORION_4BNC@GOTPAGE
Lloh63:
	ldr	x8, [x8, _HEXIUM_ORION_4BNC@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MC1,4,2                        ; @MC1
	.comm	_MASK_08,4,2                    ; @MASK_08
	.comm	_MASK_24,4,2                    ; @MASK_24
	.comm	_MASK_10,4,2                    ; @MASK_10
	.comm	_MASK_26,4,2                    ; @MASK_26
	.comm	_DD1_INIT,4,2                   ; @DD1_INIT
	.comm	_DD1_STREAM_B,4,2               ; @DD1_STREAM_B
	.comm	_MC2,4,2                        ; @MC2
	.comm	_MASK_09,4,2                    ; @MASK_09
	.comm	_MASK_25,4,2                    ; @MASK_25
l_.str.1:                               ; @.str.1
	.asciz	"hexium orion"

	.comm	_SAA7146_I2C_BUS_BIT_RATE_480,4,2 ; @SAA7146_I2C_BUS_BIT_RATE_480
l_.str.2:                               ; @.str.2
	.asciz	"cannot register i2c-device. skipping.\n"

	.comm	_SAA7146_GPIO_OUTHI,4,2         ; @SAA7146_GPIO_OUTHI
l_.str.3:                               ; @.str.3
	.asciz	"device is a Hexium Orion w/ 1 SVHS + 3 BNC inputs\n"

	.comm	_HEXIUM_ORION_1SVHS_3BNC,4,2    ; @HEXIUM_ORION_1SVHS_3BNC
l_.str.4:                               ; @.str.4
	.asciz	"device is a Hexium Orion w/ 4 BNC inputs\n"

	.comm	_HEXIUM_ORION_4BNC,4,2          ; @HEXIUM_ORION_4BNC
	.comm	_I2C_SMBUS_READ,4,2             ; @I2C_SMBUS_READ
	.comm	_I2C_SMBUS_BYTE_DATA,4,2        ; @I2C_SMBUS_BYTE_DATA
l_.str.5:                               ; @.str.5
	.asciz	"device is a Hexium HV-PCI6/Orion (old)\n"

	.comm	_HEXIUM_HV_PCI6_ORION,4,2       ; @HEXIUM_HV_PCI6_ORION
	.no_dead_strip	_hexium_probe
.subsections_via_symbols
