	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HEADER_DrawItemFrame
_HEADER_DrawItemFrame:                  ## @HEADER_DrawItemFrame
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_GetWindowTheme
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movl	(%rbx), %eax
	movq	_HDS_FLAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_HDS_BUTTONS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.4:
	cmpq	$0, (%r12)
	movq	_BDR_RAISEDOUTER@GOTPCREL(%rip), %rax
	cmoveq	_EDGE_RAISED@GOTPCREL(%rip), %rax
	movq	_BF_FLAT@GOTPCREL(%rip), %rcx
	cmoveq	_BF_SOFT@GOTPCREL(%rip), %rcx
	movq	_BF_RECT@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_3:
	movq	_BF_RIGHT@GOTPCREL(%rip), %rcx
	movq	_BF_BOTTOM@GOTPCREL(%rip), %rdx
	movq	_EDGE_ETCHED@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	(%rax), %edx
	movq	_BF_ADJUST@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%r15d, %edi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DrawEdge                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDS_FLAT,4,2                   ## @HDS_FLAT
	.comm	_HDS_BUTTONS,4,2                ## @HDS_BUTTONS
	.comm	_BDR_RAISEDOUTER,4,2            ## @BDR_RAISEDOUTER
	.comm	_BF_RECT,4,2                    ## @BF_RECT
	.comm	_BF_FLAT,4,2                    ## @BF_FLAT
	.comm	_BF_ADJUST,4,2                  ## @BF_ADJUST
	.comm	_EDGE_RAISED,4,2                ## @EDGE_RAISED
	.comm	_BF_SOFT,4,2                    ## @BF_SOFT
	.comm	_EDGE_ETCHED,4,2                ## @EDGE_ETCHED
	.comm	_BF_BOTTOM,4,2                  ## @BF_BOTTOM
	.comm	_BF_RIGHT,4,2                   ## @BF_RIGHT
	.no_dead_strip	_HEADER_DrawItemFrame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HEADER_DrawItemFrame
_HEADER_DrawItemFrame:                  ; @HEADER_DrawItemFrame
	.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, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	w0, [x0, #4]
	bl	_GetWindowTheme
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _HDS_FLAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HDS_FLAT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	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_3:
Lloh3:
	adrp	x9, _HDS_BUTTONS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HDS_BUTTONS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _BDR_RAISEDOUTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BDR_RAISEDOUTER@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh8:
	adrp	x10, _EDGE_RAISED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _EDGE_RAISED@GOTPAGEOFF]
Lloh10:
	adrp	x11, _BF_FLAT@GOTPAGE
Lloh11:
	ldr	x11, [x11, _BF_FLAT@GOTPAGEOFF]
	cmp	x9, #0
	csel	x10, x10, x8, eq
Lloh12:
	adrp	x8, _BF_SOFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BF_SOFT@GOTPAGEOFF]
	csel	x8, x8, x11, eq
Lloh14:
	adrp	x9, _BF_RECT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BF_RECT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _BF_RIGHT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BF_RIGHT@GOTPAGEOFF]
Lloh18:
	adrp	x9, _BF_BOTTOM@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BF_BOTTOM@GOTPAGEOFF]
Lloh20:
	adrp	x10, _EDGE_ETCHED@GOTPAGE
Lloh21:
	ldr	x10, [x10, _EDGE_ETCHED@GOTPAGEOFF]
LBB0_6:
	ldr	w2, [x10]
	ldr	w9, [x9]
	ldr	w8, [x8]
	orr	w8, w8, w9
Lloh22:
	adrp	x9, _BF_ADJUST@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BF_ADJUST@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x20
	mov	x1, 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	_DrawEdge
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HDS_FLAT,4,2                   ; @HDS_FLAT
	.comm	_HDS_BUTTONS,4,2                ; @HDS_BUTTONS
	.comm	_BDR_RAISEDOUTER,4,2            ; @BDR_RAISEDOUTER
	.comm	_BF_RECT,4,2                    ; @BF_RECT
	.comm	_BF_FLAT,4,2                    ; @BF_FLAT
	.comm	_BF_ADJUST,4,2                  ; @BF_ADJUST
	.comm	_EDGE_RAISED,4,2                ; @EDGE_RAISED
	.comm	_BF_SOFT,4,2                    ; @BF_SOFT
	.comm	_EDGE_ETCHED,4,2                ; @EDGE_ETCHED
	.comm	_BF_BOTTOM,4,2                  ; @BF_BOTTOM
	.comm	_BF_RIGHT,4,2                   ; @BF_RIGHT
	.no_dead_strip	_HEADER_DrawItemFrame
.subsections_via_symbols
