	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function samsung_probe
_samsung_probe:                         ## @samsung_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, %r15
	movq	_HID_CONNECT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_2:
	movq	_USB_DEVICE_ID_SAMSUNG_IR_REMOTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_5
## %bb.3:
	cmpl	$184, 8(%r15)
	jne	LBB0_5
## %bb.4:
	movq	_HID_CONNECT_HIDINPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r14d
	movq	_HID_CONNECT_HIDDEV_FORCE@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_hid_hw_start
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	movq	%r15, %rdi
	callq	_hid_err
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_CONNECT_DEFAULT,4,2        ## @HID_CONNECT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parse failed\n"

	.comm	_USB_DEVICE_ID_SAMSUNG_IR_REMOTE,8,3 ## @USB_DEVICE_ID_SAMSUNG_IR_REMOTE
	.comm	_HID_CONNECT_HIDINPUT,4,2       ## @HID_CONNECT_HIDINPUT
	.comm	_HID_CONNECT_HIDDEV_FORCE,4,2   ## @HID_CONNECT_HIDDEV_FORCE
L_.str.1:                               ## @.str.1
	.asciz	"hw start failed\n"

	.no_dead_strip	_samsung_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function samsung_probe
_samsung_probe:                         ; @samsung_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	x19, x0
Lloh0:
	adrp	x8, _HID_CONNECT_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_CONNECT_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_hid_parse
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
Lloh5:
	adrp	x8, _USB_DEVICE_ID_SAMSUNG_IR_REMOTE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _USB_DEVICE_ID_SAMSUNG_IR_REMOTE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x19, #8]
	cmp	w8, #184
	b.ne	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _HID_CONNECT_HIDINPUT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HID_CONNECT_HIDINPUT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w8, w20, w8
Lloh11:
	adrp	x9, _HID_CONNECT_HIDDEV_FORCE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HID_CONNECT_HIDDEV_FORCE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w20, w8, w9
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_hid_hw_start
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.6:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_hid_err
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_CONNECT_DEFAULT,4,2        ; @HID_CONNECT_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parse failed\n"

	.comm	_USB_DEVICE_ID_SAMSUNG_IR_REMOTE,8,3 ; @USB_DEVICE_ID_SAMSUNG_IR_REMOTE
	.comm	_HID_CONNECT_HIDINPUT,4,2       ; @HID_CONNECT_HIDINPUT
	.comm	_HID_CONNECT_HIDDEV_FORCE,4,2   ; @HID_CONNECT_HIDDEV_FORCE
l_.str.1:                               ; @.str.1
	.asciz	"hw start failed\n"

	.no_dead_strip	_samsung_probe
.subsections_via_symbols
