	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ubx_probe
_ubx_probe:                             ## @ubx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$16, %esi
	callq	_gnss_serial_allocate
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ubx_gserial_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r15)
	movq	_GNSS_TYPE_UBX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_gnss_serial_get_drvdata
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_gnss_serial_free
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	addl	(%rax), %ecx
	jne	LBB0_12
## %bb.5:
	movq	$0, (%r14)
	jmp	LBB0_8
LBB0_6:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
LBB0_8:
	movq	%r15, %rdi
	callq	_gnss_serial_register
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	callq	_regulator_disable
	jmp	LBB0_12
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ubx_gserial_ops,4,2            ## @ubx_gserial_ops
	.comm	_GNSS_TYPE_UBX,4,2              ## @GNSS_TYPE_UBX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcc"

L_.str.1:                               ## @.str.1
	.asciz	"v-bckp"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_ubx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ubx_probe
_ubx_probe:                             ; @ubx_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x0
	mov	w1, #16
	bl	_gnss_serial_allocate
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
Lloh0:
	adrp	x8, _ubx_gserial_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ubx_gserial_ops@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh2:
	adrp	x8, _GNSS_TYPE_UBX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GNSS_TYPE_UBX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	mov	x0, x19
	bl	_gnss_serial_get_drvdata
	mov	x20, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	mov	x21, x0
LBB0_4:
	mov	x0, x19
	bl	_gnss_serial_free
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get_optional
	str	x0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20]
	cbz	x8, LBB0_9
; %bb.7:
	bl	_PTR_ERR
	mov	x21, x0
Lloh9:
	adrp	x8, _ENODEV@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_4
; %bb.8:
	str	xzr, [x20]
	b	LBB0_11
LBB0_9:
	cbz	x0, LBB0_11
; %bb.10:
	bl	_regulator_enable
	mov	x21, x0
	cbnz	w0, LBB0_4
LBB0_11:
	mov	x0, x19
	bl	_gnss_serial_register
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.12:
	ldr	x0, [x20]
	cbz	x0, LBB0_4
; %bb.13:
	bl	_regulator_disable
	b	LBB0_4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ubx_gserial_ops,4,2            ; @ubx_gserial_ops
	.comm	_GNSS_TYPE_UBX,4,2              ; @GNSS_TYPE_UBX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcc"

l_.str.1:                               ; @.str.1
	.asciz	"v-bckp"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_ubx_probe
.subsections_via_symbols
