	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gnss_serial_open
_gnss_serial_open:                      ## @gnss_serial_open
	.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
	callq	_gnss_get_drvdata
	movq	%rax, %r15
	movq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_serdev_device_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_serdev_device_set_baudrate
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_serdev_device_set_flow_control
	movq	%r14, %rdi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	jns	LBB0_3
## %bb.2:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_pm_runtime_put_noidle
	movq	%r14, %rdi
	callq	_serdev_device_close
	movl	%r15d, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gnss_serial_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gnss_serial_open
_gnss_serial_open:                      ; @gnss_serial_open
	.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
	bl	_gnss_get_drvdata
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_serdev_device_open
	cbnz	w0, LBB0_3
; %bb.1:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_serdev_device_set_baudrate
	mov	x0, x19
	mov	w1, #0
	bl	_serdev_device_set_flow_control
	mov	x0, x19
	bl	_pm_runtime_get_sync
	mov	x20, x0
	mov	w0, #0
	tbz	w20, #31, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_pm_runtime_put_noidle
	mov	x0, x19
	bl	_serdev_device_close
	mov	x0, x20
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gnss_serial_open
.subsections_via_symbols
